8000 Fix custom six issue in scipy 0.14 on python 3.4 · scikit-image/scikit-image@71743d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 71743d2

Browse files
committed
Fix custom six issue in scipy 0.14 on python 3.4
1 parent 3663d80 commit 71743d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

skimage/_shared/_warnings.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ def all_warnings():
5050
f[0].f_locals['__warningregistry__'] = {}
5151
del frame
5252

53-
for mod in list(sys.modules.values()):
53+
for mod_name, mod in list(sys.modules.items()):
54+
if 'six.moves' in mod_name:
55+
continue
5456
try:
5557
mod.__warningregistry__.clear()
5658
except AttributeError:

0 commit comments

Comments
 (0)
0