Fix pylint errors

This commit is contained in:
Jason Madden 2018-02-02 08:42:05 -06:00
parent d2cdd3ad24
commit bed12e8416
No known key found for this signature in database
GPG Key ID: 349F84431A08B99E
2 changed files with 3 additions and 2 deletions

View File

@ -44,6 +44,7 @@ disable=wrong-import-position,
redefined-builtin,
useless-suppression,
duplicate-code,
inconsistent-return-statements
# undefined-all-variable
@ -79,7 +80,7 @@ ignored-classes=SectionValue
# (useful for modules/projects where namespaces are manipulated during runtime
# and thus existing member attributes cannot be deduced by static analysis. It
# supports qualified module names, as well as Unix pattern matching.
#ignored-modules=gevent._corecffi
ignored-modules=relstorage.cache._cache_ring
[DESIGN]
max-attributes=12

View File

@ -981,7 +981,7 @@ class RelStorage(UndoLogCompatible,
if self._prepared_txn is not None:
# the vote phase has already completed
return
return None
cursor = self._store_cursor
assert cursor is not None