aboutsummaryrefslogtreecommitdiffstats
path: root/pkg_resources.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-11-24 16:29:48 -0500
committerJason R. Coombs <jaraco@jaraco.com>2013-11-24 16:29:48 -0500
commite7a210418a9949a4b6e9b5ccbaf4c9349de1ad93 (patch)
tree87d00013de62f2b12d149abeb079c0bf3ca93447 /pkg_resources.py
parentf07c527906b54fa8245c6804ae8062c8ddd6c6d7 (diff)
downloadexternal_python_setuptools-e7a210418a9949a4b6e9b5ccbaf4c9349de1ad93.tar.gz
external_python_setuptools-e7a210418a9949a4b6e9b5ccbaf4c9349de1ad93.tar.bz2
external_python_setuptools-e7a210418a9949a4b6e9b5ccbaf4c9349de1ad93.zip
Remove exec compatibility from pkg_resources also.
Diffstat (limited to 'pkg_resources.py')
-rw-r--r--pkg_resources.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/pkg_resources.py b/pkg_resources.py
index 5642e352..5aeafc9f 100644
--- a/pkg_resources.py
+++ b/pkg_resources.py
@@ -35,20 +35,9 @@ try:
basestring
next = lambda o: o.next()
from cStringIO import StringIO as BytesIO
- def exec(code, globs=None, locs=None):
- if globs is None:
- frame = sys._getframe(1)
- globs = frame.f_globals
- if locs is None:
- locs = frame.f_locals
- del frame
- elif locs is None:
- locs = globs
- exec("""exec code in globs, locs""")
except NameError:
basestring = str
from io import BytesIO
- exec_ = eval("exec")
def execfile(fn, globs=None, locs=None):
if globs is None:
globs = globals()