Update pytz to 2018.6

Update the pytz library files to those from the 2018.6 release.
This commit is contained in:
Landon Abney 2018-10-24 12:48:53 -07:00
parent c08cec40cb
commit 71cb2d9c4c
No known key found for this signature in database
GPG key ID: 4414384AEEE3FB2B
609 changed files with 4505 additions and 209 deletions

View file

@ -1,8 +1,11 @@
from threading import RLock
try:
from UserDict import DictMixin
except ImportError:
from collections import Mapping as DictMixin
from collections.abc import Mapping as DictMixin
except ImportError: # Python < 3.3
try:
from UserDict import DictMixin # Python 2
except ImportError: # Python 3.0-3.3
from collections import Mapping as DictMixin
# With lazy loading, we might end up with multiple threads triggering
@ -13,6 +16,7 @@ _fill_lock = RLock()
class LazyDict(DictMixin):
"""Dictionary populated on first use."""
data = None
def __getitem__(self, key):
if self.data is None:
_fill_lock.acquire()