Skip to content

Commit

Permalink
encoding is not supported in binary mode
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenxxiu committed Jan 4, 2020
1 parent 96712fc commit b69e34a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cfv/fileutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def open_write(filename, config):
import gzip
if filename == '-':
return gzip.GzipFile(filename=filename, mode=mode, fileobj=sys.stdout)
return gzip.open(filename, mode, encoding=encoding)
return gzip.open(filename, mode)
else:
if filename == '-':
return NoCloseFile(sys.stdout)
Expand Down

0 comments on commit b69e34a

Please sign in to comment.