pytz/__init__.py:_CountryNameDict(LazyDict) is using:
zone_tab = open_resource('iso3166.tab')
try:
for line in zone_tab.readlines(): line = line.decode('US-ASCII')
to read it and fails on AX, CI, RE lines, using UTF-8 fixes the issues and should work OK even with older tzdata releases.
Since tzdata-2015e there are UTF-8 characters in iso3166.tab, see: mm.icann. org/pipermail/ tz/2015- May/022258. html mm.icann. org/pipermail/ tz/2015- June/022306. html
http://
http://
pytz/__ init__. py:_CountryName Dict(LazyDict) is using: 'iso3166. tab') readlines( ):
line = line.decode( 'US-ASCII' )
zone_tab = open_resource(
try:
for line in zone_tab.
to read it and fails on AX, CI, RE lines, using UTF-8 fixes the issues and should work OK even with older tzdata releases.