Skip to content

Commit 0d8804a

Browse files
committed
Use plain open for rules
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent d64acdd commit 0d8804a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

etc/scripts/licenses/buildrules.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def load_data(location="00-new-licenses.txt"):
7979
Load rules metadata and text from file at ``location``. Return a list of
8080
RuleData.
8181
"""
82-
with io.open(location, encoding="utf-8") as o:
82+
with open(location) as o:
8383
lines = o.read().splitlines(False)
8484

8585
rules = []
@@ -262,7 +262,7 @@ def cli(licenses_file):
262262
print(existing_msg.format(**locals()))
263263
continue
264264
else:
265-
print(f"Adding new rule: {identifier}")
265+
print(f"Adding new rule: file://{identifier}")
266266
rl = models.update_ignorables(rulerec, verbose=False)
267267
rl.dump(rules_data_dir=models.rules_data_dir)
268268

0 commit comments

Comments
 (0)