Skip to content

Commit 98cf742

Browse files
committed
STY: Simplify flake8 rules; fix issue found
1 parent 7572472 commit 98cf742

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
@@ -549,9 +549,6 @@ def get_sizeondisk(self):
549549
def __repr__(self):
550550
return 'Nifti1Extensions(%s)' % ', '.join(str(e) for e in self)
551551

552-
def __cmp__(self, other):
553-
return cmp(list(self), list(other))
554-
555552
def write_to(self, fileobj, byteswap):
556553
"""Write header extensions to fileobj
557554

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)