aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/compat.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-07-05 14:42:49 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-07-05 14:42:49 -0400
commitc4ecbd1e58a3384a5ab730450fa5487e48b68721 (patch)
tree48c2ea3b73cd70fdb47d2c1e4d2ee966c36b5377 /setuptools/compat.py
parentf3829d8bd0cd852be133f8822aa4493a7a12fd51 (diff)
downloadexternal_python_setuptools-c4ecbd1e58a3384a5ab730450fa5487e48b68721.tar.gz
external_python_setuptools-c4ecbd1e58a3384a5ab730450fa5487e48b68721.tar.bz2
external_python_setuptools-c4ecbd1e58a3384a5ab730450fa5487e48b68721.zip
Since Python 3 will always need the _execfile functionality (to fulfill the test in test_sandbox), this functionality should become part of the core implementation.
Diffstat (limited to 'setuptools/compat.py')
-rw-r--r--setuptools/compat.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/setuptools/compat.py b/setuptools/compat.py
index 507f8e6c..45c2f24c 100644
--- a/setuptools/compat.py
+++ b/setuptools/compat.py
@@ -10,7 +10,6 @@ if PY2:
import ConfigParser
from StringIO import StringIO
BytesIO = StringIO
- execfile = execfile
func_code = lambda o: o.func_code
func_globals = lambda o: o.func_globals
im_func = lambda o: o.im_func
@@ -63,15 +62,6 @@ if PY3:
)
filterfalse = itertools.filterfalse
- def execfile(fn, globs=None, locs=None):
- if globs is None:
- globs = globals()
- if locs is None:
- locs = globs
- with open(fn, 'rb') as f:
- source = f.read()
- exec(compile(source, fn, 'exec'), globs, locs)
-
def reraise(tp, value, tb=None):
if value.__traceback__ is not tb:
raise value.with_traceback(tb)