Skip to content

Commit

Permalink
Fixing string deprecation warning in noble (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayrton04 authored Feb 12, 2025
1 parent 9c6df31 commit 4c714da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/test_rospy/test/unit/test_rospy_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ def lvl2loglvl_stream(lvl):

log_file = ' '.join([
'\[rosout\]\[' + lvl2loglvl(lvl) + '\]',
'(\d+[-\/]\d+[-\/]\d+)',
'(\d+[:]\d+[:]\d+[,]\d+):',
r'(\d+[-\/]\d+[-\/]\d+)',
r'(\d+[:]\d+[:]\d+[,]\d+):',
lvl
])
fileline = lf.readline()
Expand Down
2 changes: 1 addition & 1 deletion tools/rosbag/src/rosbag/bag.py
Original file line number Diff line number Diff line change
Expand Up @@ -1565,7 +1565,7 @@ def _read_version(self):
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')

Expand Down

0 comments on commit 4c714da

Please sign in to comment.