Show More
@@ -124,7 +124,6 b' except NameError:' | |||
|
124 | 124 | from imp import reload |
|
125 | 125 | |
|
126 | 126 | from IPython.utils import openpy |
|
127 | from IPython.utils.py3compat import PY3 | |
|
128 | 127 | |
|
129 | 128 | #------------------------------------------------------------------------------ |
|
130 | 129 | # Autoreload functionality |
@@ -356,10 +355,7 b' def superreload(module, reload=reload, old_objects={}):' | |||
|
356 | 355 | try: |
|
357 | 356 | old_objects.setdefault(key, []).append(weakref.ref(obj)) |
|
358 | 357 | except TypeError: |
|
359 | # weakref doesn't work for all types; | |
|
360 | # create strong references for 'important' cases | |
|
361 | if not PY3 and isinstance(obj, types.ClassType): | |
|
362 | old_objects.setdefault(key, []).append(StrongRef(obj)) | |
|
358 | pass | |
|
363 | 359 | |
|
364 | 360 | # reload module |
|
365 | 361 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now