aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-cherrypy/gziptest.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-cherrypy/gziptest.patch')
-rw-r--r--community/py3-cherrypy/gziptest.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/community/py3-cherrypy/gziptest.patch b/community/py3-cherrypy/gziptest.patch
new file mode 100644
index 00000000000..7537d186dd0
--- /dev/null
+++ b/community/py3-cherrypy/gziptest.patch
@@ -0,0 +1,17 @@
+submitted as:
+https://github.com/cherrypy/cherrypy/pull/1897
+
+--- a/cherrypy/lib/__init__.py
++++ b/cherrypy/lib/__init__.py
+@@ -70,6 +70,11 @@
+ raise StopIteration()
+ next = __next__
+
++ def __del__(self):
++ """Close input on descturct."""
++ if hasattr(self.input, 'close'):
++ self.input.close()
++
+
+ def file_generator_limited(fileobj, count, chunk_size=65536):
+ """Yield the given file object in chunks.