remove warnings

This commit is contained in:
Clinton Hall 2024-03-01 15:07:46 +13:00 committed by GitHub
commit 961dbf8569
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: