diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2013-07-03 14:16:40 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-07-03 14:16:40 -0400 |
| commit | ed30b72b2d7a36ca72cf5aedf84d771bbfbeef81 (patch) | |
| tree | 07afe17ca6f23e2d30d12047b13175b55a4a4a8a | |
| parent | e0764d14a608fa8c2f420ea9f843072987a18a16 (diff) | |
| download | python-setuptools-git-ed30b72b2d7a36ca72cf5aedf84d771bbfbeef81.tar.gz | |
No need to thunk here - the preferred module is already imported above
| -rw-r--r-- | pkg_resources.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/pkg_resources.py b/pkg_resources.py index ec1ba1fb..74ab231d 100644 --- a/pkg_resources.py +++ b/pkg_resources.py @@ -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) |
