diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-06-12 17:49:20 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2018-06-12 21:34:52 +0200 |
commit | 634bd970013eca90f4b4c1f9044eec8c97ba62c2 (patch) | |
tree | cf308babc695722ab55344bcd27b1b68802ce3f9 /contrib/devtools/circular-dependencies.py | |
parent | fa4b9065a8298f546d91fe382b4517fbf30749c1 (diff) | |
download | bitcoin-634bd970013eca90f4b4c1f9044eec8c97ba62c2.tar.xz |
Explicitly specify encoding when opening text files in Python code
Diffstat (limited to 'contrib/devtools/circular-dependencies.py')
-rwxr-xr-x | contrib/devtools/circular-dependencies.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/devtools/circular-dependencies.py b/contrib/devtools/circular-dependencies.py index d544d5c371..abfa5ed5ae 100755 --- a/contrib/devtools/circular-dependencies.py +++ b/contrib/devtools/circular-dependencies.py @@ -37,7 +37,7 @@ for arg in sys.argv[1:]: # TODO: implement support for multiple include directories for arg in sorted(files.keys()): module = files[arg] - with open(arg, 'r') as f: + with open(arg, 'r', encoding="utf8") as f: for line in f: match = RE.match(line) if match: |