Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.

Small fixes for Python 3 compatibility.#565

Closed
aballier wants to merge 6 commits intoros:indigo-develfrom
aballier:py3k_for_upstream
Closed

Small fixes for Python 3 compatibility.#565
aballier wants to merge 6 commits intoros:indigo-develfrom
aballier:py3k_for_upstream

Conversation

@aballier
Copy link
Copy Markdown
Contributor

@aballier aballier commented Feb 9, 2015

Here is a set of small independent patches to improve python 3 compatibility. These can be squashed if desired.

I have a few more pending but their correctness is more debatable.

@ros-pull-request-builder
Copy link
Copy Markdown
Member

Can one of the admins verify this patch?

@dirk-thomas
Copy link
Copy Markdown
Member

@ros-pull-request-builder
Copy link
Copy Markdown
Member

Test passed.
Refer to this link for build results: http://jenkins.ros.org/job/_pull_request-indigo-ros_comm/160/

@gaboose
Copy link
Copy Markdown

gaboose commented Jul 2, 2015

+1

@dirk-thomas
Copy link
Copy Markdown
Member

@ros-pull-request-builder retest this please

@dirk-thomas
Copy link
Copy Markdown
Member

Please resolve the merge conflicts to allow Jenkins to test the patch.

@dirk-thomas
Copy link
Copy Markdown
Member

@mikepurvis might look into resolving conflicts on this one and targeting kinetic-devel.

@mikepurvis mikepurvis closed this Feb 8, 2017
mikepurvis added a commit that referenced this pull request Feb 9, 2017
* tcpros_service.py: encode error messages as bytes in python3 before packing them.

* test_rospy_tcpros_base.py: check against bytes equality for python3 compatibility.

* test_rospy_tcpros_pubsub.py: use bytes data instead of str for python3 compatibility.

* test_rospy_topics.py: check for bytes equality for python3 compatibility

* test_rosservice_command_line_online.py: pipes are bytes with python3, compare or decode accordingly. Fixes this test with python3.

* test_bag.py: use range() instead of xrange() so that it works with python 2 & 3. Since it is a test, performance does not matter much.
mikepurvis pushed a commit that referenced this pull request Feb 9, 2017
* tcpros_service.py: encode error messages as bytes in python3 before packing them.

* test_rospy_tcpros_base.py: check against bytes equality for python3 compatibility.

* test_rospy_tcpros_pubsub.py: use bytes data instead of str for python3 compatibility.

* test_rospy_topics.py: check for bytes equality for python3 compatibility

* test_rosservice_command_line_online.py: pipes are bytes with python3, compare or decode accordingly. Fixes this test with python3.

* test_bag.py: use range() instead of xrange() so that it works with python 2 & 3. Since it is a test, performance does not matter much.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants