diff options
Diffstat (limited to 'Demo')
-rw-r--r-- | Demo/imputil/knee.py | 5 | ||||
-rwxr-xr-x | Demo/pdist/cvslock.py | 1 |
2 files changed, 1 insertions, 5 deletions
diff --git a/Demo/imputil/knee.py b/Demo/imputil/knee.py index 64764da..26119e8 100644 --- a/Demo/imputil/knee.py +++ b/Demo/imputil/knee.py @@ -106,8 +106,7 @@ def import_module(partname, fqname, parent): return m -# Replacement for reload() -def reload_hook(module): +def reload(module): name = module.__name__ if '.' not in name: return import_module(name, name, None) @@ -119,8 +118,6 @@ def reload_hook(module): # Save the original hooks original_import = __builtin__.__import__ -original_reload = __builtin__.reload # Now install our hooks __builtin__.__import__ = import_hook -__builtin__.reload = reload_hook diff --git a/Demo/pdist/cvslock.py b/Demo/pdist/cvslock.py index 6484e71..c93c3f6 100755 --- a/Demo/pdist/cvslock.py +++ b/Demo/pdist/cvslock.py @@ -262,7 +262,6 @@ def test(): rl.unlock() finally: print [1] - sys.exc_traceback = None print [2] if rl: rl.unlock() |