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 and kvch committed Feb 20, 2020
1 parent 2d0de5d commit b3b035e
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 @@ -286,7 +287,7 @@ def create_notice(filename, beat, copyright, vendor_dir, csvfile, overrides=None
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 b3b035e

Please sign in to comment.