Skip to content

Commit

Permalink
Make linter happy: F811 redefinition of unused 'FileIterator'.
Browse files Browse the repository at this point in the history
  • Loading branch information
icemac committed Aug 17, 2023
1 parent 646b74e commit fd3bd1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/zc/zodbdgc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ def gc(conf, days=1, ignore=(), conf2=None, fs=(), untransform=None,


def gc_(close, conf, days, ignore, conf2, fs, untransform, ptid):
FileIterator = ZODB.FileStorage.FileIterator
if untransform is not None:
def FileIterator(*args):
def transit(trans):
Expand All @@ -158,6 +157,8 @@ def transit(trans):
yield transit(t)
finally:
zfsit.close()
else:
FileIterator = ZODB.FileStorage.FileIterator

def iter_storage(name, storage, start=None, stop=None):
fsname = name or ''
Expand Down

0 comments on commit fd3bd1f

Please sign in to comment.