mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-08 14:24:11 +08:00
Fix custom six issue in scipy 0.14 on python 3.4
This commit is contained in:
@@ -50,7 +50,9 @@ def all_warnings():
|
||||
f[0].f_locals['__warningregistry__'] = {}
|
||||
del frame
|
||||
|
||||
for mod in list(sys.modules.values()):
|
||||
for mod_name, mod in list(sys.modules.items()):
|
||||
if 'six.moves' in mod_name:
|
||||
continue
|
||||
try:
|
||||
mod.__warningregistry__.clear()
|
||||
except AttributeError:
|
||||
|
||||
Reference in New Issue
Block a user