From 961dbf85697fc167ede262016782db6e46d3232c Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Fri, 1 Mar 2024 15:07:46 +1300 Subject: [PATCH] remove warnings --- libs/common/transmissionrpc/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/common/transmissionrpc/client.py b/libs/common/transmissionrpc/client.py index 3f726894..9d71d4b6 100644 --- a/libs/common/transmissionrpc/client.py +++ b/libs/common/transmissionrpc/client.py @@ -89,7 +89,7 @@ def parse_torrent_ids(args): addition = [torrent_id] if not addition: # handle index ranges i.e. 5:10 - match = re.match('^(\d+):(\d+)$', item) + match = re.match('^(\\d+):(\\d+)$', item) if match: try: idx_from = int(match.group(1)) @@ -309,7 +309,7 @@ class Client(object): version_major = 1 version_minor = 30 version_changeset = 0 - version_parser = re.compile('(\d).(\d+) \((\d+)\)') + version_parser = re.compile('(\\d).(\\d+) \\((\\d+)\\)') if hasattr(self.session, 'version'): match = version_parser.match(self.session.version) if match: