summaryrefslogtreecommitdiffstats
path: root/Demo/imputil/knee.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/imputil/knee.py')
-rw-r--r--Demo/imputil/knee.py5
1 files changed, 1 insertions, 4 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