diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-11-28 20:54:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-28 20:54:42 (GMT) |
commit | a4a3020abc065d40f57069d6c69d02222ddc85d6 (patch) | |
tree | 204e84c1c4050c001f9d0f1fa8c8f509e4fd8e2e /Lib/inspect.py | |
parent | c615be5166ed338c052fa67fe781b9bfe0dfb78c (diff) | |
download | cpython-a4a3020abc065d40f57069d6c69d02222ddc85d6.zip cpython-a4a3020abc065d40f57069d6c69d02222ddc85d6.tar.gz cpython-a4a3020abc065d40f57069d6c69d02222ddc85d6.tar.bz2 |
bpo-32157: Removed explicit quotes around %r and {!r}. (#4582)
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r-- | Lib/inspect.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py index 69f2b62..8c121ce 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -1381,7 +1381,7 @@ def getclosurevars(func): func = func.__func__ if not isfunction(func): - raise TypeError("'{!r}' is not a Python function".format(func)) + raise TypeError("{!r} is not a Python function".format(func)) code = func.__code__ # Nonlocal references are named in co_freevars and resolved @@ -1624,7 +1624,7 @@ def getgeneratorlocals(generator): bound values.""" if not isgenerator(generator): - raise TypeError("'{!r}' is not a Python generator".format(generator)) + raise TypeError("{!r} is not a Python generator".format(generator)) frame = getattr(generator, "gi_frame", None) if frame is not None: |