mirror of
https://git.dn42.dev/dn42/registry.git
synced 2025-06-22 11:45:43 +08:00
Fix encoding issue with dn42-schema checker.
Nowadays many people are using non-ascii chars for descriptions and the like. This was breaking ./check-my-stuff
This commit is contained in:
parent
41eb6b79e9
commit
5f0e0131d3
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ class FileDOM:
|
|||
schema = None
|
||||
src = fn
|
||||
|
||||
with open(fn, "r") as f:
|
||||
with open(fn, mode='r', encoding='utf-8') as f:
|
||||
for lineno, i in enumerate(f.readlines(), 1):
|
||||
|
||||
if re.match(r'[ \t]', i):
|
||||
|
|
Loading…
Add table
Reference in a new issue