Log message for revision 39728:
  removed try.exception when import DateTime module (should be available
  all the time)
  

Changed:
  U   Zope/trunk/lib/python/RestrictedPython/Utilities.py

-=-
Modified: Zope/trunk/lib/python/RestrictedPython/Utilities.py
===================================================================
--- Zope/trunk/lib/python/RestrictedPython/Utilities.py 2005-10-30 02:25:54 UTC 
(rev 39727)
+++ Zope/trunk/lib/python/RestrictedPython/Utilities.py 2005-10-30 09:14:14 UTC 
(rev 39728)
@@ -23,12 +23,8 @@
 utility_builtins['random'] = random
 utility_builtins['whrandom'] = whrandom
 utility_builtins['sequence'] = DocumentTemplate.sequence
+utility_builtins['DateTime'] = DateTime.DateTime
 
-try:
-    import DateTime
-    utility_builtins['DateTime']= DateTime.DateTime
-except: pass
-
 def same_type(arg1, *args):
     '''Compares the class or type of two or more objects.'''
     t = getattr(arg1, '__class__', type(arg1))

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to