[Python-checkins] python/dist/src/Lib _strptime.py,1.28,1.29

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Sun Nov 16 11:17:50 EST 2003


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv13946/Lib

Modified Files:
	_strptime.py 
Log Message:
* 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.



Index: _strptime.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/_strptime.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** _strptime.py	16 Oct 2003 05:53:16 -0000	1.28
--- _strptime.py	16 Nov 2003 16:17:48 -0000	1.29
***************
*** 17,21 ****
  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
--- 17,20 ----
***************
*** 166,174 ****
          except AttributeError:
              pass
!         no_saving = sets_ImmutableSet(["utc", "gmt", time.tzname[0].lower()])
          if time.daylight:
!             has_saving = sets_ImmutableSet([time.tzname[1].lower()])
          else:
!             has_saving = sets_ImmutableSet()
          self.timezone = (no_saving, has_saving)
  
--- 165,173 ----
          except AttributeError:
              pass
!         no_saving = frozenset(["utc", "gmt", time.tzname[0].lower()])
          if time.daylight:
!             has_saving = frozenset([time.tzname[1].lower()])
          else:
!             has_saving = frozenset()
          self.timezone = (no_saving, has_saving)
  





More information about the Python-checkins mailing list