Skip to content

Commit bc8e5a0

Browse files
moriartyddemidov
authored andcommitted
Replaces print statement with built in function (#428)
The print statement was removed with Python3, this change should work for both Python2 and Python3.
1 parent 7e2f71e commit bc8e5a0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/motor/ev3dev_port_logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ def execute_actions(actions):
8686
test['data'][p] = logs[p].results
8787

8888
# Add a nice JSON formatter here - maybe?
89-
print json.dumps( test, indent = 4 )
89+
print (json.dumps( test, indent = 4 ))

tests/motor/plot_matplotlib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767

6868
# Clean up the chartjunk
6969
for i,ax in enumerate(axarr):
70-
print i, ax
70+
print(i, ax)
7171
# Remove the plot frame lines. They are unnecessary chartjunk.
7272
ax.spines["top"].set_visible(False)
7373

@@ -84,4 +84,4 @@
8484
verticalalignment='center',
8585
transform = axarr[i].transAxes)
8686

87-
plt.savefig("{0}-{1}.png".format(args.infile,k), bbox_inches="tight")
87+
plt.savefig("{0}-{1}.png".format(args.infile,k), bbox_inches="tight")

0 commit comments

Comments
 (0)