Skip to content

Commit

Permalink
Open file for parsing with UTF-8 support (#262)
Browse files Browse the repository at this point in the history
Co-authored-by: Haroon Sheikh <haroon.sheikh@outlook.com>
  • Loading branch information
zabil and haroon-sheikh authored Jul 25, 2023
1 parent aa751c8 commit b13ca19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion getgauge/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def parse(file_path, content=None):
"""
try:
if content is None:
with open(file_path) as f:
with open(file_path, encoding='utf-8') as f:
content = f.read()
py_tree = RedBaron(content)
return Parser(file_path, py_tree)
Expand Down

0 comments on commit b13ca19

Please sign in to comment.