Merge pull request #1 from Kuchiriel/Kuchiriel-patch-1

Update start.py
Fix for:
start.py:169: SyntaxWarning: invalid escape sequence '\d'
protocolRex = compile('"protocol":(\d+)')
start.py:168: SyntaxWarning: invalid escape sequence '\d'
IP = compile("(?:\d{1,3}.){3}\d{1,3}")
This commit is contained in:
Kuchiriel 2024-09-04 18:21:05 -03:00 committed by GitHub
commit 6aef154ab2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -165,8 +165,8 @@ BYTES_SEND = Counter()
class Tools:
IP = compile("(?:\d{1,3}\.){3}\d{1,3}")
protocolRex = compile('"protocol":(\d+)')
IP = compile(r"(?:\d{1,3}\.){3}\d{1,3}")
protocolRex = compile(r'"protocol":(\d+)')
@staticmethod
def humanbytes(i: int, binary: bool = False, precision: int = 2):