Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7605dd4

Browse files
committed
Merge pull request #6496 from QuLogic/py3k-print-doc
py3k: Fix print statements in docstrings.
2 parents 2ea542d + 9c586f2 commit 7605dd4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/matplotlib/cbook.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -938,10 +938,10 @@ class Xlator(dict):
938938
"Perl" : "Python",
939939
}
940940
941-
print multiple_replace(adict, text)
941+
print(multiple_replace(adict, text))
942942
943943
xlat = Xlator(adict)
944-
print xlat.xlat(text)
944+
print(xlat.xlat(text))
945945
"""
946946

947947
def _make_regex(self):

lib/matplotlib/widgets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,7 @@ class SpanSelector(_SelectorWidget):
13751375
ax.plot(x,y)
13761376
13771377
def onselect(vmin, vmax):
1378-
print vmin, vmax
1378+
print(vmin, vmax)
13791379
span = SpanSelector(ax, onselect, 'horizontal')
13801380
13811381
*onmove_callback* is an optional callback that is called on mouse
@@ -2146,7 +2146,7 @@ class LassoSelector(_SelectorWidget):
21462146
ax.plot(x,y)
21472147
21482148
def onselect(verts):
2149-
print verts
2149+
print(verts)
21502150
lasso = LassoSelector(ax, onselect)
21512151
21522152
*button* is a list of integers indicating which mouse buttons should

0 commit comments

Comments
 (0)