CID 1311767: Cast enum type to avoid compiler warnings
[samba.git] / third_party / pep8 / testsuite / E26.py
1 #: E261:1:5
2 pass # an inline comment
3 #: E262:1:12
4 x = x + 1  #Increment x
5 #: E262:1:12
6 x = x + 1  #  Increment x
7 #: E262:1:12
8 x = y + 1  #:  Increment x
9 #: E265:1:1
10 #Block comment
11 a = 1
12 #: E265:2:1
13 m = 42
14 #! This is important
15 mx = 42 - 42
16 #: E266:3:5 E266:6:5
17 def how_it_feel(r):
18
19     ### This is a variable ###
20     a = 42
21
22     ### Of course it is unused
23     return
24 #: E265:1:1 E266:2:1
25 ##if DEBUG:
26 ##    logging.error()
27 #: W291:1:42
28 #########################################
29 #:
30
31 #: Okay
32 #!/usr/bin/env python
33
34 pass  # an inline comment
35 x = x + 1   # Increment x
36 y = y + 1   #: Increment x
37
38 # Block comment
39 a = 1
40
41 # Block comment1
42
43 # Block comment2
44 aaa = 1
45
46
47 # example of docstring (not parsed)
48 def oof():
49     """
50     #foo not parsed
51     """
52
53     ###########################################################################
54     #                               A SEPARATOR                               #
55     ###########################################################################
56
57     # ####################################################################### #
58     # ########################## another separator ########################## #
59     # ####################################################################### #