File: 0011-Fix-Python-SyntaxWarning.patch

package info (click to toggle)
ros-ros-comm 1.17.4%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 10,400 kB
  • sloc: cpp: 42,116; python: 38,991; xml: 2,665; ansic: 2,384; sh: 274; makefile: 27
file content (21 lines) | stat: -rw-r--r-- 814 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Tue, 9 Sep 2025 22:20:14 +0200
Subject: Fix Python SyntaxWarning

---
 tools/rosbag/src/rosbag/bag.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/rosbag/src/rosbag/bag.py b/tools/rosbag/src/rosbag/bag.py
index c8dd9bb..c8eb8b8 100644
--- a/tools/rosbag/src/rosbag/bag.py
+++ b/tools/rosbag/src/rosbag/bag.py
@@ -1565,7 +1565,7 @@ class Bag(object):
         if len(version_line) == 0:
             raise ROSBagException('empty file')
         
-        matches = re.match("#ROS(.*) V(\d).(\d)", version_line)
+        matches = re.match(r"#ROS(.*) V(\d).(\d)", version_line)
         if matches is None or len(matches.groups()) != 3:
             raise ROSBagException('This does not appear to be a bag file')