summaryrefslogtreecommitdiffstats
path: root/Lib/_strptime.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-11-16 16:17:49 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-11-16 16:17:49 (GMT)
commita690a9967e715663b7a421c9ebdad91381cdf1e4 (patch)
tree1c5d9eeef0ac20efe39f1af11a81d745592596d1 /Lib/_strptime.py
parentd456849f19fa7b00b6560b67c5388a5a6cd89d0a (diff)
downloadcpython-a690a9967e715663b7a421c9ebdad91381cdf1e4.zip
cpython-a690a9967e715663b7a421c9ebdad91381cdf1e4.tar.gz
cpython-a690a9967e715663b7a421c9ebdad91381cdf1e4.tar.bz2
* Migrate set() and frozenset() from the sandbox.
* Install the unittests, docs, newsitem, include file, and makefile update. * Exercise the new functions whereever sets.py was being used. Includes the docs for libfuncs.tex. Separate docs for the types are forthcoming.
Diffstat (limited to 'Lib/_strptime.py')
-rw-r--r--Lib/_strptime.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/_strptime.py b/Lib/_strptime.py
index 4746544..df04674 100644
--- a/Lib/_strptime.py
+++ b/Lib/_strptime.py
@@ -16,7 +16,6 @@ import calendar
from re import compile as re_compile
from re import IGNORECASE
from datetime import date as datetime_date
-from sets import ImmutableSet as sets_ImmutableSet
try:
from thread import allocate_lock as _thread_allocate_lock
except:
@@ -165,11 +164,11 @@ class LocaleTime(object):
time.tzset()
except AttributeError:
pass
- no_saving = sets_ImmutableSet(["utc", "gmt", time.tzname[0].lower()])
+ no_saving = frozenset(["utc", "gmt", time.tzname[0].lower()])
if time.daylight:
- has_saving = sets_ImmutableSet([time.tzname[1].lower()])
+ has_saving = frozenset([time.tzname[1].lower()])
else:
- has_saving = sets_ImmutableSet()
+ has_saving = frozenset()
self.timezone = (no_saving, has_saving)