| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c568eb5 commit dbdc381
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,6 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | 3 | from __future__ import print_function | |
| 4 | 4 | import glob | |
| 5 | + import io | ||
| 5 | 6 | import re | |
| 6 | 7 | import sys | |
| 7 | 8 | ||
@@ -15,7 +16,7 @@ def do_exist(file_name, lines, imported): | |||
| 15 | 16 | ||
| 16 | 17 | ||
| 17 | 18 | def is_valid(file_name): | |
| 18 | - with open(file_name) as source_file: | ||
| 19 | + with io.open(file_name, encoding='utf-8') as source_file: | ||
| 19 | 20 | lines = [line.strip() for line in source_file] | |
| 20 | 21 | ||
| 21 | 22 | usings, importeds, line_numbers, valid = [], [], [], True | |
| Back | FazBrowse Home | New Git URL |
0 commit comments