[issue30017] zlib.error: Error -2 while flushing: inconsistent stream state

Ellison Marks report at bugs.python.org
Fri Apr 7 20:26:14 EDT 2017


Ellison Marks added the comment:

At a guess, when encoder goes out of scope, it closes the underlying file object. Then, on exiting the with block, the zipfile tries to take some action with the closed file and errors out?

----------
nosy: +Ellison Marks

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30017>
_______________________________________


More information about the Python-bugs-list mailing list