diff options
| author | Michael Merickel <michael@merickel.org> | 2018-11-12 23:20:48 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2018-11-12 23:20:48 -0600 |
| commit | d879bdfd477a138746e8593b8d9f30c492ff71e1 (patch) | |
| tree | a55f224f030b37e5072c68b6c6d489accd725f89 /src | |
| parent | 4cb6a965f7e8ce44ef609436f314b56119131f73 (diff) | |
| download | pyramid-d879bdfd477a138746e8593b8d9f30c492ff71e1.tar.gz pyramid-d879bdfd477a138746e8593b8d9f30c492ff71e1.tar.bz2 pyramid-d879bdfd477a138746e8593b8d9f30c492ff71e1.zip | |
remove exec alias
Diffstat (limited to 'src')
| -rw-r--r-- | src/pyramid/compat.py | 8 | ||||
| -rw-r--r-- | src/pyramid/scripts/pshell.py | 3 |
2 files changed, 1 insertions, 10 deletions
diff --git a/src/pyramid/compat.py b/src/pyramid/compat.py index c2d7c7f3f..e502cbce4 100644 --- a/src/pyramid/compat.py +++ b/src/pyramid/compat.py @@ -62,11 +62,6 @@ url_unquote_text = url_unquote url_unquote_native = url_unquote -import builtins - -exec_ = getattr(builtins, "exec") - - def reraise(tp, value, tb=None): if value is None: value = tp @@ -75,9 +70,6 @@ def reraise(tp, value, tb=None): raise value -del builtins - - def iteritems_(d): return d.items() diff --git a/src/pyramid/scripts/pshell.py b/src/pyramid/scripts/pshell.py index e63114d18..a9f02e408 100644 --- a/src/pyramid/scripts/pshell.py +++ b/src/pyramid/scripts/pshell.py @@ -6,7 +6,6 @@ import sys import textwrap import pkg_resources -from pyramid.compat import exec_ from pyramid.util import DottedNameResolver from pyramid.util import make_contextmanager from pyramid.paster import bootstrap @@ -214,7 +213,7 @@ class PShellCommand(object): if self.pystartup and os.path.isfile(self.pystartup): with open(self.pystartup, 'rb') as fp: - exec_(fp.read().decode('utf-8'), env) + exec(fp.read().decode('utf-8'), env) if '__builtins__' in env: del env['__builtins__'] |
