mirror of
https://github.com/socialwifi/RouterOS-api.git
synced 2025-09-01 15:35:49 +02:00
Use raw bytes literals for regexp.
Fixes `SyntaxWarning: invalid escape sequence '\.' `.
This commit is contained in:
parent
0b057122fc
commit
bd2aaa7559
1 changed files with 3 additions and 3 deletions
|
@ -4,9 +4,9 @@ from routeros_api import exceptions
|
|||
from routeros_api import query
|
||||
|
||||
|
||||
response_re = re.compile(b'^!(re|trap|fatal|done)$')
|
||||
attribute_re = re.compile(b'^=([^=]+)=(.*)$', re.DOTALL)
|
||||
tag_re = re.compile(b'^\.tag=(.*)$')
|
||||
response_re = re.compile(rb'^!(re|trap|fatal|done)$')
|
||||
attribute_re = re.compile(rb'^=([^=]+)=(.*)$', re.DOTALL)
|
||||
tag_re = re.compile(rb'^\.tag=(.*)$')
|
||||
|
||||
|
||||
class ResponseSentence(object):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue