Skip to content

Commit bff6a17

Browse files
committed
Fix many py2-style prints in docs and commented code.
The main interest was to transform py2-style print statements that still appeared in some docstrings (e.g. for %history) and would thus show up when looking at the docs either interactively or in the rendered website. I also fixed a number of commented-out print statements at the same time, mostly because it was easier for me to just regexp-change all of them so that I could focus on the others.
1 parent d340f68 commit bff6a17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

IPython/lib/lexers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,13 +456,13 @@ def get_mci(self, line):
456456
# does not use the continuation marker cannot be detected.
457457
# For example, the 3 in the following is clearly output:
458458
#
459-
# In [1]: print 3
459+
# In [1]: print(3)
460460
# 3
461461
#
462462
# But the following second line is part of the input:
463463
#
464464
# In [2]: while True:
465-
# print True
465+
# print(True)
466466
#
467467
# In both cases, the 2nd line will be 'output'.
468468
#

0 commit comments

Comments
 (0)