diff options
author | Stuart Bishop <stuart@stuartbishop.net> | 2015-09-21 20:31:13 +0700 |
---|---|---|
committer | Stuart Bishop <stuart@stuartbishop.net> | 2015-09-21 20:31:13 +0700 |
commit | d53e863459e1a61075af44209e3581636682a162 (patch) | |
tree | d7b2f9516083e3c211d00cd1173d2b557384b194 | |
parent | 964b959652dafcb6d534f6eae4e92c7bb6169b25 (diff) | |
download | pytz-d53e863459e1a61075af44209e3581636682a162.tar.gz |
zone.tab is now UTF-8release_2015.6
-rw-r--r-- | src/pytz/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pytz/__init__.py b/src/pytz/__init__.py index 55eaa8b..e30ef25 100644 --- a/src/pytz/__init__.py +++ b/src/pytz/__init__.py @@ -329,7 +329,7 @@ class _CountryTimezoneDict(LazyDict): zone_tab = open_resource('zone.tab') try: for line in zone_tab: - line = line.decode('US-ASCII') + line = line.decode('UTF-8') if line.startswith('#'): continue code, coordinates, zone = line.split(None, 4)[:3] @@ -357,7 +357,7 @@ class _CountryNameDict(LazyDict): zone_tab = open_resource('iso3166.tab') try: for line in zone_tab.readlines(): - line = line.decode('US-ASCII') + line = line.decode('UTF-8') if line.startswith('#'): continue code, name = line.split(None, 1) |