Browse Source

Lark grammars are now utf8 by default (Issue #179)

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.6.1
Erez Shinan 6 years ago
parent
commit
f99e2ecc86
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lark/lark.py

+ 1
- 1
lark/lark.py View File

@@ -202,7 +202,7 @@ class Lark:
if rel_to:
basepath = os.path.dirname(rel_to)
grammar_filename = os.path.join(basepath, grammar_filename)
with open(grammar_filename) as f:
with open(grammar_filename, encoding='utf8') as f:
return cls(f, **options)

def __repr__(self):


Loading…
Cancel
Save