mirror of
https://github.com/python/cpython.git
synced 2025-08-08 02:48:55 +00:00
[3.12] gh-105069: Add a readline-like callable to the tokenizer to consume input iteratively (GH-105070) (#105119)
gh-105069: Add a readline-like callable to the tokenizer to consume input iteratively (GH-105070)
(cherry picked from commit 9216e69a87
)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
This commit is contained in:
parent
2f8c22f1d6
commit
c687946f68
7 changed files with 276 additions and 98 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue