Commit 3befdaf5 authored by Tres Seaver's avatar Tres Seaver

Extend hardening against 'six' renames to include vendored version.

Forward-port bca6b385 from 2.13 branch.
parent 2d53353e
...@@ -152,7 +152,7 @@ class DebugManager(Item, Implicit): ...@@ -152,7 +152,7 @@ class DebugManager(Item, Implicit):
for m in sys.modules.values(): for m in sys.modules.values():
if m is None: if m is None:
continue continue
if m.__name__.startswith('six'): if 'six.' in m.__name__:
continue continue
for sym in dir(m): for sym in dir(m):
ob = getattr(m, sym) ob = getattr(m, sym)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment