summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheck_whence.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/check_whence.py b/check_whence.py
index 04f41df..2d31f38 100755
--- a/check_whence.py
+++ b/check_whence.py
@@ -1,9 +1,10 @@
#!/usr/bin/python
import os, re, sys
+from io import open
def list_whence():
- with open('WHENCE') as whence:
+ with open('WHENCE', encoding='utf-8') as whence:
for line in whence:
match = re.match(r'(?:File|Source):\s*"(.*)"', line)
if match: