diff options
Diffstat (limited to 'setuptools/compat.py')
| -rw-r--r-- | setuptools/compat.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/setuptools/compat.py b/setuptools/compat.py index 09e5af5c..73e6e4aa 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 @@ -22,8 +21,6 @@ if PY2: iteritems = lambda o: o.iteritems() long_type = long maxsize = sys.maxint - next = lambda o: o.next() - numeric_types = (int, long, float) unichr = unichr unicode = unicode bytes = str @@ -51,8 +48,6 @@ if PY3: iteritems = lambda o: o.items() long_type = int maxsize = sys.maxsize - next = next - numeric_types = (int, float) unichr = chr unicode = str bytes = bytes @@ -65,15 +60,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) |
