Skip to content

Commit ab0adb4

Browse files
author
Ben Cipollini
committed
STY: autoflake on source code.
1 parent d8504c6 commit ab0adb4

File tree

6 files changed

+4
-13
lines changed

6 files changed

+4
-13
lines changed

nibabel/benchmarks/bench_array_to_file.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919

2020
import numpy as np
2121

22-
from ..externals.six import BytesIO
23-
from ..volumeutils import array_to_file
2422

2523
from .butils import print_git_title
2624

nibabel/benchmarks/bench_finite_range.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919

2020
import numpy as np
2121

22-
from ..externals.six import BytesIO
23-
from ..volumeutils import finite_range
2422

2523
from .butils import print_git_title
2624

nibabel/parrec.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ class PARRECError(Exception):
243243
To be raised whenever PAR/REC is not happy, or we are not happy with
244244
PAR/REC.
245245
"""
246-
pass
247246

248247

249248
# Value after colon may be absent

nibabel/spatialimages.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,10 @@
144144

145145
class HeaderDataError(Exception):
146146
''' Class to indicate error in getting or setting header data '''
147-
pass
148147

149148

150149
class HeaderTypeError(Exception):
151150
''' Class to indicate error in parameters into header functions '''
152-
pass
153151

154152

155153
class SpatialHeader(FileBasedHeader):

nibabel/xmlutils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
"""
1212

1313
from io import BytesIO
14-
from xml.etree.ElementTree import Element, SubElement, tostring
14+
from xml.etree.ElementTree import Element, SubElement, tostring # flake8: noqa aliasing
1515
from xml.parsers.expat import ParserCreate
1616

17-
from .filebasedimages import FileBasedHeader, FileBasedImage
17+
from .filebasedimages import FileBasedHeader
1818

1919

2020
class XmlSerializable(object):
@@ -32,7 +32,6 @@ def to_xml(self, enc='utf-8'):
3232

3333
class XmlBasedHeader(FileBasedHeader, XmlSerializable):
3434
""" Basic wrapper around FileBasedHeader and XmlSerializable."""
35-
pass
3635

3736

3837
class XmlParser(object):

setup_egg.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
# vi: set ft=python sts=4 ts=4 sw=4 et:
44
"""Wrapper to run setup.py using setuptools."""
55

6-
import setuptools
6+
import setuptools # flake8: noqa ; needed to monkeypatch dist_utils
77

8-
################################################################################
8+
###############################################################################
99
# Call the setup.py script, injecting the setuptools-specific arguments.
1010

1111
if __name__ == '__main__':
1212
exec(open('setup.py', 'rt').read(), dict(__name__='__main__'))
13-

0 commit comments

Comments
 (0)