1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-20 19:07:38 +03:00

Ensured that regexps are raw strings

Ensures that there are no weird excaping issues
This commit is contained in:
A_D 2020-08-02 13:43:20 +02:00
parent e477f89664
commit cea8ac49ca
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4

View File

@ -57,7 +57,7 @@ class EDDN:
REPLAYPERIOD = 400 # Roughly two messages per second, accounting for send delays [ms]
REPLAYFLUSH = 20 # Update log on disk roughly every 10 seconds
TIMEOUT = 10 # requests timeout
MODULE_RE = re.compile('^Hpt_|^Int_|Armour_', re.IGNORECASE)
MODULE_RE = re.compile(r'^Hpt_|^Int_|Armour_', re.IGNORECASE)
CANONICALISE_RE = re.compile(r'\$(.+)_name;')
def __init__(self, parent):