Skip to content

Commit

Permalink
Open example file in text mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
zsiciarz committed Aug 17, 2015
1 parent 88e97c1 commit 2690649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/download_observations.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
observations = download_observations(observer_code)
print('All done.\nDownloaded %d observations.' % len(observations))
filename = '%s.txt' % observer_code
with open(filename, 'wb') as fp:
with open(filename, 'w') as fp:
writer = VisualFormatWriter(fp, observer_code)
for observation in observations:
writer.writerow(observation)
Expand Down

0 comments on commit 2690649

Please sign in to comment.