Message306253
Given the symptoms (stripping 4 spaces + "pr" from the start of the line, leaving "int " behind), it looks like we're not stripping the leading whitespace when determining the text to include in the suggested print() call.
To reproduce this at the REPL, you can use an if statement (first example uses a 4 space indent, the second uses an 8 space indent):
```
>>> if 1:
... print 123
File "<stdin>", line 2
print 123
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(int 123)?
>>> if 1:
... print 123
File "<stdin>", line 2
print 123
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(print 123)?
``` |
|
Date |
User |
Action |
Args |
2017-11-15 06:35:19 | ncoghlan | set | recipients:
+ ncoghlan, CuriousLearner, mdraw |
2017-11-15 06:35:19 | ncoghlan | set | messageid: <1510727719.87.0.213398074469.issue32028@psf.upfronthosting.co.za> |
2017-11-15 06:35:19 | ncoghlan | link | issue32028 messages |
2017-11-15 06:35:19 | ncoghlan | create | |
|