Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
b478e2e7
Commit
b478e2e7
authored
Nov 08, 2022
by
Maurits van Rees
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make both flake8 and isort happy.
parent
24173bc5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
src/ZODB/_compat.py
src/ZODB/_compat.py
+5
-0
src/ZODB/scripts/fstest.py
src/ZODB/scripts/fstest.py
+0
-1
No files found.
src/ZODB/_compat.py
View file @
b478e2e7
...
...
@@ -136,6 +136,11 @@ except ImportError:
from
base64
import
decodestring
as
decodebytes
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.
def
py2_hasattr
(
obj
,
name
):
...
...
src/ZODB/scripts/fstest.py
View file @
b478e2e7
...
...
@@ -44,7 +44,6 @@ from ZODB._compat import FILESTORAGE_MAGIC
# this file will need to be udpated.
class
FormatError
(
ValueError
):
"""There is a problem with the format of the FileStorage."""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment