removal of warnings on regex.
This commit is contained in:
@@ -125,12 +125,12 @@ class pxssh(spawn):
|
|||||||
# prompt command different than the regex.
|
# prompt command different than the regex.
|
||||||
|
|
||||||
# used to match the command-line prompt
|
# used to match the command-line prompt
|
||||||
self.UNIQUE_PROMPT = "\[PEXPECT\][\$\#] "
|
self.UNIQUE_PROMPT = r"\[PEXPECT\][\$\#] "
|
||||||
self.PROMPT = self.UNIQUE_PROMPT
|
self.PROMPT = self.UNIQUE_PROMPT
|
||||||
|
|
||||||
# used to set shell command-line prompt to UNIQUE_PROMPT.
|
# used to set shell command-line prompt to UNIQUE_PROMPT.
|
||||||
self.PROMPT_SET_SH = "PS1='[PEXPECT]\$ '"
|
self.PROMPT_SET_SH = r"PS1='[PEXPECT]\$ '"
|
||||||
self.PROMPT_SET_CSH = "set prompt='[PEXPECT]\$ '"
|
self.PROMPT_SET_CSH = r"set prompt='[PEXPECT]\$ '"
|
||||||
self.SSH_OPTS = "-o'RSAAuthentication=no'" + " -o 'PubkeyAuthentication=no'"
|
self.SSH_OPTS = "-o'RSAAuthentication=no'" + " -o 'PubkeyAuthentication=no'"
|
||||||
# Disabling host key checking, makes you vulnerable to MITM attacks.
|
# Disabling host key checking, makes you vulnerable to MITM attacks.
|
||||||
# + " -o 'StrictHostKeyChecking=no'"
|
# + " -o 'StrictHostKeyChecking=no'"
|
||||||
|
|||||||
@@ -79,16 +79,16 @@ class TextLogHighlighter (QSyntaxHighlighter):
|
|||||||
# Comparison
|
# Comparison
|
||||||
'==', '!=', '<', '<=', '>', '>=',
|
'==', '!=', '<', '<=', '>', '>=',
|
||||||
# Arithmetic
|
# Arithmetic
|
||||||
'\+', '-', '\*', '/', '//', '\%', '\*\*',
|
r'\+', '-', r'\*', '/', '//', r'\%', r'\*\*',
|
||||||
# In-place
|
# In-place
|
||||||
'\+=', '-=', '\*=', '/=', '\%=',
|
r'\+=', '-=', r'\*=', '/=', r'\%=',
|
||||||
# Bitwise
|
# Bitwise
|
||||||
'\^', '\|', '\&', '\~', '>>', '<<',
|
r'\^', r'\|', r'\&', r'\~', '>>', '<<',
|
||||||
]
|
]
|
||||||
|
|
||||||
# Python braces
|
# Python braces
|
||||||
braces = [
|
braces = [
|
||||||
'\{', '\}', '\(', '\)', '\[', '\]',
|
r'\{', r'\}', r'\(', r'\)', r'\[', r'\]',
|
||||||
]
|
]
|
||||||
|
|
||||||
def __init__(self, document):
|
def __init__(self, document):
|
||||||
|
|||||||
Reference in New Issue
Block a user