[Zope-Checkins] CVS: Zope3/lib/python/Zope/Misc - DateTimeParse.py:1.1.2.5

Jim Fulton jim@zope.com
Mon, 10 Jun 2002 15:34:55 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/Misc
In directory cvs.zope.org:/tmp/cvs-serv5490/lib/python/Zope/Misc

Modified Files:
      Tag: Zope-3x-branch
	DateTimeParse.py 
Log Message:
Implemented 

http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/IContainerPythonification

Along the way:

- Converted most uses of has_key to use in.

- Fixed a bug in Interface names and namesAndDescriptions methods 
  that caused base class attributes to be missed.



=== Zope3/lib/python/Zope/Misc/DateTimeParse.py 1.1.2.4 => 1.1.2.5 ===
                 if i < l and string[i]=='.': i=i+1
                 # Check for month name:
-                if MonthNumbers.has_key(s):
+                if s in MonthNumbers:
                     v=MonthNumbers[s]
                     if month is None: month=v
                     else: raise SyntaxError(string)
@@ -651,7 +651,7 @@
                     else: raise SyntaxError(string)
                     continue
                 # Check for and skip day of week:
-                if DayOfWeekNames.has_key(s):
+                if s in DayOfWeekNames:
                     continue
             raise SyntaxError(string)