aboutsummaryrefslogtreecommitdiff
path: root/contrib/devtools/test-security-check.py
diff options
context:
space:
mode:
authorpracticalswift <[email protected]>2018-06-12 17:49:20 +0200
committerpracticalswift <[email protected]>2018-06-12 21:34:52 +0200
commit634bd970013eca90f4b4c1f9044eec8c97ba62c2 (patch)
treecf308babc695722ab55344bcd27b1b68802ce3f9 /contrib/devtools/test-security-check.py
parentMerge #13066: Migrate verify-commits script to python, run in travis (diff)
downloaddiscoin-634bd970013eca90f4b4c1f9044eec8c97ba62c2.tar.xz
discoin-634bd970013eca90f4b4c1f9044eec8c97ba62c2.zip
Explicitly specify encoding when opening text files in Python code
Diffstat (limited to 'contrib/devtools/test-security-check.py')
-rwxr-xr-xcontrib/devtools/test-security-check.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/devtools/test-security-check.py b/contrib/devtools/test-security-check.py
index 307e05773..9b6d6bf66 100755
--- a/contrib/devtools/test-security-check.py
+++ b/contrib/devtools/test-security-check.py
@@ -9,7 +9,7 @@ import subprocess
import unittest
def write_testcode(filename):
- with open(filename, 'w') as f:
+ with open(filename, 'w', encoding="utf8") as f:
f.write('''
#include <stdio.h>
int main()