Skip to content

Commit

Permalink
Opening in byte creates problems in Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz Lennert committed Dec 20, 2019
1 parent a82876e commit 52cab48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grass7/imagery/i.segment.stats/i.segment.stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def main():
error_objects = []

if csvfile:
with open(csvfile, 'wb') as f:
with open(csvfile, 'w') as f:
f.write(separator.join(output_header)+"\n")
for key in output_dict:
if len(output_dict[key]) + 1 == len(output_header):
Expand Down

0 comments on commit 52cab48

Please sign in to comment.