File: ros_python3.diff

package info (click to toggle)
morse-simulator 1.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 169,784 kB
  • ctags: 3,593
  • sloc: python: 23,947; ansic: 1,370; cpp: 786; makefile: 120; xml: 34; sh: 7
file content (20 lines) | stat: -rw-r--r-- 764 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- _Image.py 2012-12-19 10:35:23.539305258 +0100
+++ /opt/ros/fuerte/lib/python2.7/dist-packages/sensor_msgs/msg/_Image.py   2012-12-19 10:36:23.247006282 +0100
@@ -188,6 +188,3 @@
       end += length
-      if python3:
-        self.data = str[start:end].decode('utf-8')
-      else:
-        self.data = str[start:end]
+      self.data = str[start:end]
       return self
--- _PointCloud2.py   2012-12-19 10:35:48.686834915 +0100
+++ /opt/ros/fuerte/lib/python2.7/dist-packages/sensor_msgs/msg/_PointCloud2.py 2012-12-19 10:36:33.331056290 +0100
@@ -233,6 +233,3 @@
       end += length
-      if python3:
-        self.data = str[start:end].decode('utf-8')
-      else:
-        self.data = str[start:end]
+      self.data = str[start:end]
       start = end