Commit ed30b72b authored by Jason R. Coombs's avatar Jason R. Coombs

No need to thunk here - the preferred module is already imported above

parent e0764d14
......@@ -1972,15 +1972,6 @@ def find_in_zip(importer, path_item, only=False):
register_finder(zipimport.zipimporter, find_in_zip)
def StringIO(*args, **kw):
"""Thunk to load the real StringIO on demand"""
global StringIO
try:
from cStringIO import StringIO
except ImportError:
from io import StringIO
return StringIO(*args,**kw)
def find_nothing(importer, path_item, only=False):
return ()
register_finder(object,find_nothing)
......
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