mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-12-05 00:19:13 +00:00
build: Explicitly read files as UTF-8
Otherwise the OS default encoding is used which leads to errors on Windows.
This commit is contained in:
parent
bed8eb27a8
commit
b9714440a6
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ re_keyval = re.compile(r'^[\s\*/]+@(\S+)\s+(.+)\s*$', re.IGNORECASE)
|
|||
items = list()
|
||||
for jsfilename in sorted(glob.glob('*.user.js')):
|
||||
in_header = False
|
||||
with open(jsfilename) as jsfile:
|
||||
with open(jsfilename, encoding='utf-8') as jsfile:
|
||||
d = defaultdict(list)
|
||||
for line in jsfile:
|
||||
if not in_header and re_start_header.search(line):
|
||||
|
|
Loading…
Reference in a new issue