Python 3 checks the new PythonForMegaPi library for consistency with Python 3. The old code for Python 2 does not pass the test.
pi@raspberrypi:~ $ python3 MyRobot.py
Traceback (most recent call last):
File "MyRobot.py", line 2, in
from megapi import *
File "/usr/local/lib/python3.5/dist-packages/megapi.py", line 12
print self
^
SyntaxError: Missing parentheses in call to 'print'
Python 3 checks the new PythonForMegaPi library for consistency with Python 3. The old code for Python 2 does not pass the test.
pi@raspberrypi:~ $ python3 MyRobot.py
Traceback (most recent call last):
File "MyRobot.py", line 2, in
from megapi import *
File "/usr/local/lib/python3.5/dist-packages/megapi.py", line 12
print self
^
SyntaxError: Missing parentheses in call to 'print'