diff options
author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2023-05-30 21:43:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-30 21:43:34 (GMT) |
commit | 9216e69a87d16d871625721ed5a8aa302511f367 (patch) | |
tree | 0e8f7f0689a7f873f34066d254bba74ec919a04d /Lib/inspect.py | |
parent | 2ea34cfb3a21182b4d16f57dd6c1cfce46362fe2 (diff) | |
download | cpython-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.py | 2 |
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 |