summaryrefslogtreecommitdiffstats
path: root/Lib/inspect.py
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2023-05-30 21:43:34 (GMT)
committerGitHub <noreply@github.com>2023-05-30 21:43:34 (GMT)
commit9216e69a87d16d871625721ed5a8aa302511f367 (patch)
tree0e8f7f0689a7f873f34066d254bba74ec919a04d /Lib/inspect.py
parent2ea34cfb3a21182b4d16f57dd6c1cfce46362fe2 (diff)
downloadcpython-9216e69a87d16d871625721ed5a8aa302511f367.zip
cpython-9216e69a87d16d871625721ed5a8aa302511f367.tar.gz
cpython-9216e69a87d16d871625721ed5a8aa302511f367.tar.bz2
gh-105069: Add a readline-like callable to the tokenizer to consume input iteratively (#105070)
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r--Lib/inspect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py
index 55530fc..15eefdb 100644
--- a/Lib/inspect.py
+++ b/Lib/inspect.py
@@ -2203,7 +2203,7 @@ def _signature_strip_non_python_syntax(signature):
add(string)
if (string == ','):
add(' ')
- clean_signature = ''.join(text).strip()
+ clean_signature = ''.join(text).strip().replace("\n", "")
return clean_signature, self_parameter