Skip to content

Commit acf129f

Browse files
committed
fix python2 compat
1 parent a28662a commit acf129f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pymycobot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
__all__ = ["MyCobot", "MycobotCommandGenerater", "Angle", "Coord"]
77

8-
__version__ = "2.5.1"
8+
__version__ = "2.5.2"
99
__author__ = "Zachary zhang"
1010
__email__ = "lijun.zhang@elephantrobotics.com"
1111
__git_url__ = "https://github.com/elephantrobotics/pymycobot"

pymycobot/mycobot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def _mesg(self, genre, *args, **kwargs):
5858
**kwargs: support `has_reply`
5959
has_reply: Whether there is a return value to accept.
6060
"""
61-
real_command, has_reply = super()._mesg(genre, *args, **kwargs)
61+
real_command, has_reply = super(MyCobot, self)._mesg(genre, *args, **kwargs)
6262
self._write(self._flatten(real_command))
6363

6464
if has_reply:

tests/test_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def setup():
2525

2626
def test_generator(setup):
2727
# print(mg.__dir__())
28-
print(mg, version())
28+
print(mg.version())
2929
print(mg.power_on())
3030
print(mg.power_off())
3131
print(mg.release_all_servos())

0 commit comments

Comments
 (0)