s3: libsmb: Reverse sense of 'clear all attributes', ignore attribute change in SMB2...
[Samba.git] / third_party / pep8 / testsuite / E50.py
blobf60f3890e7bdd240073412d4b0b0fb4d4699ab3a
1 #: E501
2 a = '12345678901234567890123456789012345678901234567890123456789012345678901234567890'
3 #: E501
4 a = '1234567890123456789012345678901234567890123456789012345678901234567890' or \
6 #: E501
7 a = 7 or \
8 '1234567890123456789012345678901234567890123456789012345678901234567890' or \
10 #: E501 E501
11 a = 7 or \
12 '1234567890123456789012345678901234567890123456789012345678901234567890' or \
13 '1234567890123456789012345678901234567890123456789012345678901234567890' or \
15 #: E501
16 a = '1234567890123456789012345678901234567890123456789012345678901234567890' # \
17 #: E502
18 a = ('123456789012345678901234567890123456789012345678901234567890123456789' \
19 '01234567890')
20 #: E502
21 a = ('AAA \
22 BBB' \
23 'CCC')
24 #: E502
25 if (foo is None and bar is "e000" and \
26 blah == 'yeah'):
27 blah = 'yeahnah'
29 #: Okay
30 a = ('AAA'
31 'BBB')
33 a = ('AAA \
34 BBB'
35 'CCC')
37 a = 'AAA' \
38 'BBB' \
39 'CCC'
41 a = ('AAA\
42 BBBBBBBBB\
43 CCCCCCCCC\
44 DDDDDDDDD')
46 #: Okay
47 if aaa:
48 pass
49 elif bbb or \
50 ccc:
51 pass
53 ddd = \
54 ccc
56 ('\
57 ' + ' \
59 ('''
60 ''' + ' \
62 #: E501 E225 E226
63 very_long_identifiers=and_terrible_whitespace_habits(are_no_excuse+for_long_lines)
65 #: E501
66 '''multiline string
67 with a long long long long long long long long long long long long long long long long line
68 '''
69 #: E501
70 '''same thing, but this time without a terminal newline in the string
71 long long long long long long long long long long long long long long long long line'''
73 # issue 224 (unavoidable long lines in docstrings)
74 #: Okay
75 """
76 I'm some great documentation. Because I'm some great documentation, I'm
77 going to give you a reference to some valuable information about some API
78 that I'm calling:
80 http://msdn.microsoft.com/en-us/library/windows/desktop/aa363858(v=vs.85).aspx
81 """
82 #: E501
83 """
84 longnospaceslongnospaceslongnospaceslongnospaceslongnospaceslongnospaceslongnospaceslongnospaces"""
85 #: Okay
86 """
87 This
88 almost_empty_line
89 """
90 #: E501
91 """
92 This
93 almost_empty_line
94 """
95 #: E501
96 # A basic comment
97 # with a long long long long long long long long long long long long long long long long line
100 #: Okay
101 # I'm some great comment. Because I'm so great, I'm going to give you a
102 # reference to some valuable information about some API that I'm calling:
104 # http://msdn.microsoft.com/en-us/library/windows/desktop/aa363858(v=vs.85).aspx
106 import this
108 # longnospaceslongnospaceslongnospaceslongnospaceslongnospaceslongnospaceslongnospaceslongnospaces
111 #: Okay
112 # This
113 # almost_empty_line
116 #: E501
117 # This
118 # almost_empty_line