We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3faf1f commit b4b7eb9Copy full SHA for b4b7eb9
2 files changed
bin/countries.py
@@ -6,7 +6,7 @@
6
countries = {}
7
p_data = Path('datasets')
8
9
-reader = csv.reader(p_data.joinpath('countryInfo.txt').open(), 'excel-tab')
+reader = csv.reader(p_data.joinpath('countryInfo.txt').open(encoding='utf-8'), 'excel-tab')
10
for record in reader:
11
if record[0].startswith('#'):
12
continue
bin/us_counties.py
@@ -5,7 +5,7 @@
5
-reader = csv.reader(p_data.joinpath('national_county2020.txt').open())
+reader = csv.reader(p_data.joinpath('national_county2020.txt').open(encoding='utf-8'))
next(reader) # skip header row
state_name_idx = 0
0 commit comments