Changeset 393

Show
Ignore:
Timestamp:
Wed Dec 19 11:37:52 2007
Author:
naufraghi
Message:

Add comments and commented prints

Files:

Legend:

Unmodified
Added
Removed
Modified
  • branches/python2.5/mf.py

    r384 r393  
    70 70                 try:  
    71 71                     st = os.stat(attempt)  
    72                   except:  
      72                 except Exception, e:  
      73                     #print "DirOwner", e  
    73 74                     pass  
    74 75                 else:  
     
    77 78                         continue  
    78 79                     if typ == imp.C_EXTENSION:  
      80                         #print "DirOwner.getmod -> ExtensionModule(%s, %s)" % (nm, attempt)  
    79 81                         return ExtensionModule(nm, attempt)  
    80 82                     elif typ == imp.PY_SOURCE:  
     
    85 87                 break  
    86 88         if py is None and pyc is None:  
      89             #print "DirOwner.getmod -> (py == pyc == None)"  
    87 90             return None  
    88 91         while 1:  
      92             # If we have no pyc or py is newer  
    89 93             if pyc is None or py and pyc[1][8] < py[1][8]:  
    90 94                 try:  
     
    104 108                     break  
    105 109                 except (ValueError, EOFError):  
    106                       print "W: bad .pyc found (%s)" % pyc[0]  
      110                     print "W: bad .pyc found (%s), will use .py" % pyc[0]  
    106 110                     pyc = None  
    107 111             else:  
      112                 #print "DirOwner.getmod while 1 -> None"  
    108 113                 return None  
    109 114         if not os.path.isabs(pth):  
     
    114 119         else:  
    115 120             mod = PyModule(nm, pth, co)  
      121         #print "DirOwner.getmod -> %s" % mod  
    116 122         return mod  
    117 123  
     
    175 181                     #hkey = win32api.RegOpenKeyEx(root, subkey, 0, win32con.KEY_ALL_ACCESS)  
    176 182                     hkey = win32api.RegOpenKeyEx(root, subkey, 0, win32con.KEY_READ)  
    177                   except:  
      183                 except Exception, e:  
      184                     #print "RegistryImportDirector", e  
    178 185                     pass  
    179 186                 else:  
     
    249 256                 # hence the protection  
    250 257                 owner = klass(path)  
    251               except:  
      258             except Exception, e:  
      259                 #print "PathImportDirector", e  
    252 260                 pass  
    253 261             else: