Commit d33fe054 authored by Luke Campagnola's avatar Luke Campagnola
Browse files

fixed python2.x print statements

parent 4fad8fa3
......@@ -39,7 +39,7 @@ def plot():
#plt.addItem(item)
dt = pg.ptime.time() - start
print "Create plots took: %0.3fms" % (dt*1000)
print("Create plots took: %0.3fms" % (dt*1000))
## Plot and clear 5 times, printing the time it took
for i in range(5):
......@@ -72,7 +72,7 @@ def fastPlot():
plt.addItem(item)
dt = pg.ptime.time() - start
print "Create plots took: %0.3fms" % (dt*1000)
print("Create plots took: %0.3fms" % (dt*1000))
## Plot and clear 5 times, printing the time it took
......@@ -82,7 +82,7 @@ if hasattr(pg, 'arrayToQPath'):
fastPlot()
app.processEvents()
else:
print "Skipping fast tests--arrayToQPath function is missing."
print("Skipping fast tests--arrayToQPath function is missing.")
plt.autoRange()
......
......@@ -451,7 +451,7 @@ class ViewBox(GraphicsWidget):
if item is None:
bounds = self.childrenBoundingRect(items=items)
else:
print "Warning: ViewBox.autoRange(item=__) is deprecated. Use 'items' argument instead."
print("Warning: ViewBox.autoRange(item=__) is deprecated. Use 'items' argument instead.")
bounds = self.mapFromItemToView(item, item.boundingRect()).boundingRect()
if bounds is not None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment