Skip to content

Commit

Permalink
Fix generation of notice file in CSV format (elastic#16388)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano authored Feb 18, 2020
1 parent 4ea0f91 commit 02ada23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dev-tools/generate_notice.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import glob
import os
import datetime
Expand Down Expand Up @@ -221,7 +222,7 @@ def create_notice(filename, beat, copyright, vendor_dirs, csvfile, overrides=Non
write_notice_file(f, beat, copyright, dependencies)
print("Available at {}".format(filename))
else:
with open(csvfile, "wb", encoding='utf_8') as f:
with open(csvfile, "w") as f:
csvwriter = csv.writer(f)
write_csv_file(csvwriter, dependencies)
print("Available at {}".format(csvfile))
Expand Down

0 comments on commit 02ada23

Please sign in to comment.