Commit b478e2e7 authored by Maurits van Rees's avatar Maurits van Rees

Make both flake8 and isort happy.

parent 24173bc5
...@@ -136,6 +136,11 @@ except ImportError: ...@@ -136,6 +136,11 @@ except ImportError:
from base64 import decodestring as decodebytes from base64 import decodestring as decodebytes
from base64 import encodestring as encodebytes from base64 import encodestring as encodebytes
# I want to use 'noqa: F401 import unused' on the lines above, for flake8,
# but isort removes them. So mention the two imported functions here,
# so neither flake8 nor isort complains.
decodebytes, encodebytes
# Python 3.x: ``hasattr()`` swallows only AttributeError. # Python 3.x: ``hasattr()`` swallows only AttributeError.
def py2_hasattr(obj, name): def py2_hasattr(obj, name):
......
...@@ -44,7 +44,6 @@ from ZODB._compat import FILESTORAGE_MAGIC ...@@ -44,7 +44,6 @@ from ZODB._compat import FILESTORAGE_MAGIC
# this file will need to be udpated. # this file will need to be udpated.
class FormatError(ValueError): class FormatError(ValueError):
"""There is a problem with the format of the FileStorage.""" """There is a problem with the format of the FileStorage."""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment