Skip to content

Commit

Permalink
removed try.exception when import DateTime module (should be available
Browse files Browse the repository at this point in the history
all the time)
  • Loading branch information
zopyx committed Oct 30, 2005
1 parent 63009a2 commit 3f1cd58
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@
utility_builtins['random'] = random
utility_builtins['whrandom'] = whrandom
utility_builtins['sequence'] = DocumentTemplate.sequence

try:
import DateTime
utility_builtins['DateTime']= DateTime.DateTime
except: pass
utility_builtins['DateTime'] = DateTime.DateTime

def same_type(arg1, *args):
'''Compares the class or type of two or more objects.'''
Expand Down

0 comments on commit 3f1cd58

Please sign in to comment.