Skip to content

Commit b13ca19

Browse files
zabilharoon-sheikh
andauthored
Open file for parsing with UTF-8 support (#262)
Co-authored-by: Haroon Sheikh <haroon.sheikh@outlook.com>
1 parent aa751c8 commit b13ca19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

getgauge/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def parse(file_path, content=None):
1313
"""
1414
try:
1515
if content is None:
16-
with open(file_path) as f:
16+
with open(file_path, encoding='utf-8') as f:
1717
content = f.read()
1818
py_tree = RedBaron(content)
1919
return Parser(file_path, py_tree)

0 commit comments

Comments
 (0)