Skip to content

Commit

Permalink
v.in.redlist: open file in text mode (#728)
Browse files Browse the repository at this point in the history
Fixes #727
  • Loading branch information
Giordano8 committed Apr 8, 2022
1 parent 65e9a76 commit 9745a41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vector/v.in.redlist/v.in.redlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def main():
# get layer
layer = dataSource.GetLayer()
# open export file
f = open("%s" % (output_species_file), "wb")
f = open("%s" % (output_species_file), "w")
# write content of the attribute table column binomial
for feature in layer:
f.write("%s\n" % (feature.GetField("binomial")))
Expand Down

0 comments on commit 9745a41

Please sign in to comment.