Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Fixing encoding error on some platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjohnson5972 committed Dec 27, 2018
1 parent d5c6d69 commit beec235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/validate_reflection.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ def replace_braces_initialization(match):
return all

def validate_file(file):
f = open(file, "r")
f = open(file, "r", encoding="utf-8")
contents = "\n" + f.read() # lazy fix for complex regex
f.close()
print("analyze %s" % (file))
Expand Down

0 comments on commit beec235

Please sign in to comment.