[Zope-Checkins]
SVN: Zope/trunk/lib/python/RestrictedPython/Utilities.py
removed try.exception when import DateTime module (should be
available
Andreas Jung
andreas at andreas-jung.com
Sun Oct 30 04:14:15 EST 2005
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))
More information about the Zope-Checkins
mailing list