Changeset 383
- Timestamp:
- Mon Dec 17 05:58:57 2007
- Files:
-
- branches/python2.5/iu.py (modified) (diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
branches/python2.5/iu.py
r339 r383 70 70 try: 71 71 st = _os_stat(attempt) 72 except: 73 pass 72 except Exception, msg: 73 #print "!!!!!!! _os_stat Exception %s '%s'" % (msg, attempt) 74 74 else: 75 75 if typ == imp.C_EXTENSION: … … 165 165 #hkey = win32api.RegOpenKeyEx(root, subkey, 0, KEY_ALL_ACCESS) 166 166 hkey = win32api.RegOpenKeyEx(root, subkey, 0, KEY_READ) 167 except: 168 pass 167 except Exception, msg: 168 #print "!!!!!!! RegOpenKeyEx Exception", msg 169 169 else: 170 170 numsubkeys, numvalues, lastmodified = win32api.RegQueryInfoKey(hkey) … … 229 229 # hence the protection 230 230 owner = klass(path) 231 except: 232 pass 231 except Exception, msg: 232 #print "!!!!!!! klass Exception %s, '%s'" % (msg, path) 233 233 else: 234 234 break … … 248 248 UNTRIED = -1 249 249 250 class ImportManagerException(Exception): 251 def __init__(self, args): 252 self.args = args 253 def __repr__(self): 254 return "<%s: %s>" % (self.__name__, self.args) 255 250 256 class ImportManager: 251 257 # really the equivalent of builtin import … … 274 280 def importHook(self, name, globals=None, locals=None, fromlist=None, level=-1): 275 281 # first see if we could be importing a relative name 276 #print "importHook(%s, %s, locals, %s)" % (name, g lobals['__name__'], fromlist)282 #print "importHook(%s, %s, locals, %s)" % (name, getattr(globals, '__name__', None), fromlist), 276 282 _sys_modules_get = sys.modules.get 277 283 contexts = [None] … … 313 319 try: 314 320 mod = _self_doimport(nm, ctx, fqname) 315 except: 321 except Exception, msg: 322 #print "!!!!!!! _self_doimport Exception", msg 316 323 if threaded: 317 324 self._release() … … 357 364 try: 358 365 mod = self.doimport(nm, ctx, ctx+'.'+nm) 359 except: 366 except Exception, msg: 367 #print "!!!!!!! self.doimport doimport Exception", msg 360 368 pass 361 369 if threaded:
