Skip to content

Commit 826aa2c

Browse files
committed
enrich comment
1 parent fdd3ce9 commit 826aa2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/io/formats/csvs.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ def save(self):
151151
self._save()
152152

153153
finally:
154-
# GH 17778 handles compression for byte strings.
154+
# GH 17778 handles zip compression for byte strings separately to
155+
# support Python 2
155156
if not close and self.compression:
156157
f.close()
157158
with open(f.name, 'rb') as f:

0 commit comments

Comments
 (0)