| 1 |
|
| 2 |
|
| 3 |
# Warning! This file contains form feeds (ASCII 0x0C, often represented by \f or ^L). |
| 4 |
# These may be invisible in your editor: ensure you can see them before making changes here. |
| 5 |
|
| 6 |
# There's one at the start that'll get stripped |
| 7 |
|
| 8 |
# Comment and statement processing is different enough that we'll test variations of both |
| 9 |
# contexts here |
| 10 |
|
| 11 |
# |
| 12 |
|
| 13 |
|
| 14 |
# |
| 15 |
|
| 16 |
|
| 17 |
# |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
# |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
# |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
# |
| 30 |
|
| 31 |
|
| 32 |
# |
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
# |
| 37 |
|
| 38 |
# |
| 39 |
|
| 40 |
# |
| 41 |
|
| 42 |
\ |
| 43 |
# |
| 44 |
pass |
| 45 |
|
| 46 |
pass |
| 47 |
|
| 48 |
|
| 49 |
pass |
| 50 |
|
| 51 |
|
| 52 |
pass |
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
pass |
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
pass |
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
pass |
| 65 |
|
| 66 |
|
| 67 |
pass |
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
pass |
| 72 |
|
| 73 |
pass |
| 74 |
|
| 75 |
pass |
| 76 |
|
| 77 |
|
| 78 |
# form feed after a dedent |
| 79 |
def foo(): |
| 80 |
pass |
| 81 |
|
| 82 |
pass |
| 83 |
|
| 84 |
|
| 85 |
# form feeds are prohibited inside blocks, or on a line with nonwhitespace |
| 86 |
defbar(a=1,b:bool=False): |
| 87 |
|
| 88 |
|
| 89 |
pass |
| 90 |
|
| 91 |
|
| 92 |
class Baz: |
| 93 |
|
| 94 |
def __init__(self): |
| 95 |
pass |
| 96 |
|
| 97 |
|
| 98 |
def something(self): |
| 99 |
pass |
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
# |
| 104 |
pass |
| 105 |
pass # |
| 106 |
a = 1 |
| 107 |
# |
| 108 |
pass |
| 109 |
a = 1 |
| 110 |
|
| 111 |
a = [ |
| 112 |
|
| 113 |
] |
| 114 |
|
| 115 |
# as internal whitespace of a comment is allowed but why |
| 116 |
"form feed literal in a string is okay" |
| 117 |
|
| 118 |
# form feeds at the very end get removed. |
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
# output |
| 123 |
|
| 124 |
# Warning! This file contains form feeds (ASCII 0x0C, often represented by \f or ^L). |
| 125 |
# These may be invisible in your editor: ensure you can see them before making changes here. |
| 126 |
|
| 127 |
# There's one at the start that'll get stripped |
| 128 |
|
| 129 |
# Comment and statement processing is different enough that we'll test variations of both |
| 130 |
# contexts here |
| 131 |
|
| 132 |
# |
| 133 |
|
| 134 |
|
| 135 |
# |
| 136 |
|
| 137 |
|
| 138 |
# |
| 139 |
|
| 140 |
|
| 141 |
# |
| 142 |
|
| 143 |
|
| 144 |
# |
| 145 |
|
| 146 |
|
| 147 |
# |
| 148 |
|
| 149 |
|
| 150 |
# |
| 151 |
|
| 152 |
|
| 153 |
# |
| 154 |
|
| 155 |
# |
| 156 |
|
| 157 |
# |
| 158 |
|
| 159 |
|
| 160 |
# |
| 161 |
pass |
| 162 |
|
| 163 |
pass |
| 164 |
|
| 165 |
|
| 166 |
pass |
| 167 |
|
| 168 |
|
| 169 |
pass |
| 170 |
|
| 171 |
|
| 172 |
pass |
| 173 |
|
| 174 |
|
| 175 |
pass |
| 176 |
|
| 177 |
|
| 178 |
pass |
| 179 |
|
| 180 |
|
| 181 |
pass |
| 182 |
|
| 183 |
|
| 184 |
pass |
| 185 |
|
| 186 |
pass |
| 187 |
|
| 188 |
pass |
| 189 |
|
| 190 |
|
| 191 |
# form feed after a dedent |
| 192 |
def foo(): |
| 193 |
pass |
| 194 |
|
| 195 |
|
| 196 |
pass |
| 197 |
|
| 198 |
|
| 199 |
# form feeds are prohibited inside blocks, or on a line with nonwhitespace |
| 200 |
def bar(a=1, b: bool = False): |
| 201 |
|
| 202 |
pass |
| 203 |
|
| 204 |
|
| 205 |
class Baz: |
| 206 |
|
| 207 |
def __init__(self): |
| 208 |
pass |
| 209 |
|
| 210 |
def something(self): |
| 211 |
pass |
| 212 |
|
| 213 |
|
| 214 |
# |
| 215 |
pass |
| 216 |
pass # |
| 217 |
a = 1 |
| 218 |
# |
| 219 |
pass |
| 220 |
a = 1 |
| 221 |
|
| 222 |
a = [] |
| 223 |
|
| 224 |
# as internal whitespace of a comment is allowed but why |
| 225 |
"form feed literal in a string is okay" |
| 226 |
|
| 227 |
# form feeds at the very end get removed. |