From e7a210418a9949a4b6e9b5ccbaf4c9349de1ad93 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 24 Nov 2013 16:29:48 -0500 Subject: Remove exec compatibility from pkg_resources also. --- pkg_resources.py | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'pkg_resources.py') 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() -- cgit v1.2.1