Nick Coghlan <ncogh...@gmail.com> added the comment: 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)? ``` ---------- stage: -> test needed versions: +Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32028> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com