Skip to content

Commit 21ed7f0

Browse files
committed
STY: Simplify flake8 rules; fix issue found
1 parent 8853f54 commit 21ed7f0

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

nibabel/nifti1.py

-3
Original file line numberDiff line numberDiff line change
@@ -524,9 +524,6 @@ def get_sizeondisk(self):
524524
def __repr__(self):
525525
return "Nifti1Extensions(%s)" % ', '.join(str(e) for e in self)
526526

527-
def __cmp__(self, other):
528-
return cmp(list(self), list(other))
529-
530527
def write_to(self, fileobj, byteswap):
531528
""" Write header extensions to fileobj
532529

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ nibabel =
9595

9696
[flake8]
9797
max-line-length = 100
98-
ignore = D100,D101,D102,D103,D104,D105,D200,D201,D202,D204,D205,D208,D209,D210,D300,D301,D400,D401,D403,E24,E121,E123,E126,E226,E266,E402,E704,E731,F821,I100,I101,I201,N802,N803,N804,N806,W503,W504,W605
98+
extend-ignore = E203,E266,E402,E731
9999
exclude =
100100
*test*
101101
*sphinx*

0 commit comments

Comments
 (0)