Skip to content

Commit

Permalink
Update daemon.py for Python 3.8 compatibility (#912)
Browse files Browse the repository at this point in the history
Signed-off-by: AhmedMoaz <[email protected]>
  • Loading branch information
AhmedMoaz authored Jun 24, 2024
1 parent 0c8ae6d commit d95532e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ros2cli/ros2cli/node/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def spawn_daemon(args, timeout=None, debug=False):
with open('/proc/self/status', 'r') as f:
for line in f:
if line.startswith(string_to_find):
fdlimit = int(line.removeprefix(string_to_find).strip())
fdlimit = int(line[len(string_to_find):].strip())
break
except (FileNotFoundError, ValueError):
pass
Expand Down

0 comments on commit d95532e

Please sign in to comment.