Commit d4434e19 authored by Guillaume Hervier's avatar Guillaume Hervier

rdiff_backup.connection: Small refactor in VirtualFile

parent 8ae3dd3e
......@@ -552,9 +552,8 @@ class VirtualFile:
@classmethod
def closebyid(cls, id):
fp = cls.vfiles[id]
fp = cls.vfiles.pop(id)
cls.id_generator.remove(id)
del cls.vfiles[id]
return fp.close()
@classmethod
......
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