2018-05-15 17:33:00 +00:00
|
|
|
# pylint:disable=W0105, W0511, misplaced-comparison-constant, comparison-with-itself
|
2012-09-19 14:11:08 +00:00
|
|
|
"""Stray backslash escapes may be missing a raw-string prefix."""
|
|
|
|
|
|
|
|
__revision__ = '$Id$'
|
|
|
|
|
|
|
|
# Bad escape sequences, which probably don't do what you expect.
|
|
|
|
A = "\[\]\\"
|
|
|
|
assert '\/' == '\\/'
|
|
|
|
ESCAPE_BACKSLASH = '\`'
|
|
|
|
|
|
|
|
# Valid escape sequences.
|
|
|
|
NEWLINE = "\n"
|
|
|
|
OLD_ESCAPES = '\a\b\f\n\t\r\v'
|
|
|
|
HEX = '\xad\x0a\x0d'
|
2013-02-25 09:48:51 +00:00
|
|
|
FALSE_OCTAL = '\o123\o000' # Not octal in Python
|
|
|
|
OCTAL = '\123\000'
|
|
|
|
NOT_OCTAL = '\888\999'
|
|
|
|
NUL = '\0'
|
2012-09-19 14:11:08 +00:00
|
|
|
UNICODE = u'\u1234'
|
|
|
|
HIGH_UNICODE = u'\U0000abcd'
|
|
|
|
QUOTES = '\'\"'
|
|
|
|
LITERAL_NEWLINE = '\
|
|
|
|
'
|
|
|
|
ESCAPE_UNICODE = "\\\\n"
|
|
|
|
|
|
|
|
# Bad docstring
|
|
|
|
"""Even in a docstring
|
|
|
|
|
|
|
|
You shouldn't have ambiguous text like: C:\Program Files\alpha
|
|
|
|
"""
|