Skip to content

Commit

Permalink
Merge pull request #63 from davidlatwe/patch-1
Browse files Browse the repository at this point in the history
Fix unicode decode err
  • Loading branch information
bee-san authored May 31, 2021
2 parents 990178d + 0f8b3d2 commit 4a799df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pywhat/regex_identifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class RegexIdentifier:
def __init__(self):
path = "Data/regex.json"
fullpath = os.path.join(os.path.dirname(os.path.abspath(__file__)), path)
with open(fullpath, "r") as myfile:
with open(fullpath, "r", encoding="utf8") as myfile:
self.regexes = json.load(myfile)

def check(self, text):
Expand Down

0 comments on commit 4a799df

Please sign in to comment.