Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

func_excess_escapes.py 692B

123456789101112131415161718192021222324252627282930
  1. # pylint:disable=W0105, W0511, misplaced-comparison-constant
  2. """Stray backslash escapes may be missing a raw-string prefix."""
  3. __revision__ = '$Id$'
  4. # Bad escape sequences, which probably don't do what you expect.
  5. A = "\[\]\\"
  6. assert '\/' == '\\/'
  7. ESCAPE_BACKSLASH = '\`'
  8. # Valid escape sequences.
  9. NEWLINE = "\n"
  10. OLD_ESCAPES = '\a\b\f\n\t\r\v'
  11. HEX = '\xad\x0a\x0d'
  12. FALSE_OCTAL = '\o123\o000' # Not octal in Python
  13. OCTAL = '\123\000'
  14. NOT_OCTAL = '\888\999'
  15. NUL = '\0'
  16. UNICODE = u'\u1234'
  17. HIGH_UNICODE = u'\U0000abcd'
  18. QUOTES = '\'\"'
  19. LITERAL_NEWLINE = '\
  20. '
  21. ESCAPE_UNICODE = "\\\\n"
  22. # Bad docstring
  23. """Even in a docstring
  24. You shouldn't have ambiguous text like: C:\Program Files\alpha
  25. """