Skip to content

Commit 9fe27c9

Browse files
committed
fixup! Simplify CSVFormatter.save
1 parent be724fa commit 9fe27c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/formats/csvs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def save(self):
127127
# create the writer & save
128128
encoding = self.encoding
129129
if encoding is None:
130-
encoding = 'ascii' if compat.compat.PY2 else 'utf-8'
130+
encoding = 'ascii' if compat.PY2 else 'utf-8'
131131

132132
f, handles = _get_handle(
133133
path_or_buf=self.path_or_buf,

0 commit comments

Comments
 (0)