Statistics
| Revision:

gvsig-scripting / org.gvsig.scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.app / org.gvsig.scripting.app.mainplugin / src / main / resources-plugin / scripting / lib / pylint / test / input / func_excess_escapes.py @ 745

History | View | Annotate | Download (692 Bytes)

1
# pylint:disable=W0105, W0511, misplaced-comparison-constant
2
"""Stray backslash escapes may be missing a raw-string prefix."""
3

    
4
__revision__ = '$Id$'
5

    
6
# Bad escape sequences, which probably don't do what you expect.
7
A = "\[\]\\"
8
assert '\/' == '\\/'
9
ESCAPE_BACKSLASH = '\`'
10

    
11
# Valid escape sequences.
12
NEWLINE = "\n"
13
OLD_ESCAPES = '\a\b\f\n\t\r\v'
14
HEX = '\xad\x0a\x0d'
15
FALSE_OCTAL = '\o123\o000'  # Not octal in Python
16
OCTAL = '\123\000'
17
NOT_OCTAL = '\888\999'
18
NUL = '\0'
19
UNICODE = u'\u1234'
20
HIGH_UNICODE = u'\U0000abcd'
21
QUOTES = '\'\"'
22
LITERAL_NEWLINE = '\
23
'
24
ESCAPE_UNICODE = "\\\\n"
25

    
26
# Bad docstring
27
"""Even in a docstring
28

29
You shouldn't have ambiguous text like: C:\Program Files\alpha
30
"""