Documentation/Source/eric5.Plugins.CheckerPlugins.Pep8.Pep8Fixer.html

changeset 2966
f85f686981ad
parent 2938
42d82e978d27
equal deleted inserted replaced
2965:d133c7edd88a 2966:f85f686981ad
74 </tr><tr> 74 </tr><tr>
75 <td><a href="#Pep8Fixer.__findLogical">__findLogical</a></td> 75 <td><a href="#Pep8Fixer.__findLogical">__findLogical</a></td>
76 <td>Private method to extract the index of all the starts and ends of lines.</td> 76 <td>Private method to extract the index of all the starts and ends of lines.</td>
77 </tr><tr> 77 </tr><tr>
78 <td><a href="#Pep8Fixer.__fixD111">__fixD111</a></td> 78 <td><a href="#Pep8Fixer.__fixD111">__fixD111</a></td>
79 <td>Private method to fix docstring enclosed in wrong quotes (D111).</td> 79 <td>Private method to fix docstring enclosed in wrong quotes.</td>
80 </tr><tr> 80 </tr><tr>
81 <td><a href="#Pep8Fixer.__fixD112">__fixD112</a></td> 81 <td><a href="#Pep8Fixer.__fixD112">__fixD112</a></td>
82 <td>Private method to fix docstring 'r' or 'u' in leading quotes (D112, D113).</td> 82 <td>Private method to fix docstring 'r' or 'u' in leading quotes.</td>
83 </tr><tr> 83 </tr><tr>
84 <td><a href="#Pep8Fixer.__fixD121">__fixD121</a></td> 84 <td><a href="#Pep8Fixer.__fixD121">__fixD121</a></td>
85 <td>Private method to fix a single line docstring on multiple lines (D121).</td> 85 <td>Private method to fix a single line docstring on multiple lines.</td>
86 </tr><tr> 86 </tr><tr>
87 <td><a href="#Pep8Fixer.__fixD131">__fixD131</a></td> 87 <td><a href="#Pep8Fixer.__fixD131">__fixD131</a></td>
88 <td>Private method to fix a docstring summary not ending with a period (D131).</td> 88 <td>Private method to fix a docstring summary not ending with a period.</td>
89 </tr><tr> 89 </tr><tr>
90 <td><a href="#Pep8Fixer.__fixD141">__fixD141</a></td> 90 <td><a href="#Pep8Fixer.__fixD141">__fixD141</a></td>
91 <td>Private method to fix a function/method docstring preceded by a blank line (D141).</td> 91 <td>Private method to fix a function/method docstring preceded by a blank line.</td>
92 </tr><tr> 92 </tr><tr>
93 <td><a href="#Pep8Fixer.__fixD142">__fixD142</a></td> 93 <td><a href="#Pep8Fixer.__fixD142">__fixD142</a></td>
94 <td>Private method to fix a class docstring not preceded by a blank line (D142).</td> 94 <td>Private method to fix a class docstring not preceded by a blank line.</td>
95 </tr><tr> 95 </tr><tr>
96 <td><a href="#Pep8Fixer.__fixD143">__fixD143</a></td> 96 <td><a href="#Pep8Fixer.__fixD143">__fixD143</a></td>
97 <td>Private method to fix a class docstring not followed by a blank line (D143).</td> 97 <td>Private method to fix a class docstring not followed by a blank line.</td>
98 </tr><tr> 98 </tr><tr>
99 <td><a href="#Pep8Fixer.__fixD144">__fixD144</a></td> 99 <td><a href="#Pep8Fixer.__fixD144">__fixD144</a></td>
100 <td>Private method to fix a docstring summary not followed by a blank line (D144).</td> 100 <td>Private method to fix a docstring summary not followed by a blank line.</td>
101 </tr><tr> 101 </tr><tr>
102 <td><a href="#Pep8Fixer.__fixD145">__fixD145</a></td> 102 <td><a href="#Pep8Fixer.__fixD145">__fixD145</a></td>
103 <td>Private method to fix the last paragraph of a multi-line docstring not followed by a blank line (D143).</td> 103 <td>Private method to fix the last paragraph of a multi-line docstring not followed by a blank line.</td>
104 </tr><tr> 104 </tr><tr>
105 <td><a href="#Pep8Fixer.__fixD221">__fixD221</a></td> 105 <td><a href="#Pep8Fixer.__fixD221">__fixD221</a></td>
106 <td>Private method to fix leading and trailing quotes of docstring not on separate lines (D221, D222).</td> 106 <td>Private method to fix leading and trailing quotes of docstring not on separate lines.</td>
107 </tr><tr> 107 </tr><tr>
108 <td><a href="#Pep8Fixer.__fixD242">__fixD242</a></td> 108 <td><a href="#Pep8Fixer.__fixD242">__fixD242</a></td>
109 <td>Private method to fix a class or function/method docstring preceded by a blank line (D242, D244).</td> 109 <td>Private method to fix a class or function/method docstring preceded by a blank line.</td>
110 </tr><tr> 110 </tr><tr>
111 <td><a href="#Pep8Fixer.__fixD243">__fixD243</a></td> 111 <td><a href="#Pep8Fixer.__fixD243">__fixD243</a></td>
112 <td>Private method to fix a class or function/method docstring followed by a blank line (D243, D245).</td> 112 <td>Private method to fix a class or function/method docstring followed by a blank line.</td>
113 </tr><tr> 113 </tr><tr>
114 <td><a href="#Pep8Fixer.__fixD247">__fixD247</a></td> 114 <td><a href="#Pep8Fixer.__fixD247">__fixD247</a></td>
115 <td>Private method to fix a last paragraph of a docstring followed by a blank line (D247).</td> 115 <td>Private method to fix a last paragraph of a docstring followed by a blank line.</td>
116 </tr><tr> 116 </tr><tr>
117 <td><a href="#Pep8Fixer.__fixE101">__fixE101</a></td> 117 <td><a href="#Pep8Fixer.__fixE101">__fixE101</a></td>
118 <td>Private method to fix obsolete tab usage and indentation errors (E101, E111, W191).</td> 118 <td>Private method to fix obsolete tab usage and indentation errors.</td>
119 </tr><tr> 119 </tr><tr>
120 <td><a href="#Pep8Fixer.__fixE121">__fixE121</a></td> 120 <td><a href="#Pep8Fixer.__fixE121">__fixE121</a></td>
121 <td>Private method to fix the indentation of continuation lines and closing brackets (E121, E124).</td> 121 <td>Private method to fix the indentation of continuation lines and closing brackets.</td>
122 </tr><tr> 122 </tr><tr>
123 <td><a href="#Pep8Fixer.__fixE122">__fixE122</a></td> 123 <td><a href="#Pep8Fixer.__fixE122">__fixE122</a></td>
124 <td>Private method to fix a missing indentation of continuation lines (E122).</td> 124 <td>Private method to fix a missing indentation of continuation lines.</td>
125 </tr><tr> 125 </tr><tr>
126 <td><a href="#Pep8Fixer.__fixE123">__fixE123</a></td> 126 <td><a href="#Pep8Fixer.__fixE123">__fixE123</a></td>
127 <td>Private method to fix the indentation of a closing bracket lines (E123).</td> 127 <td>Private method to fix the indentation of a closing bracket lines.</td>
128 </tr><tr> 128 </tr><tr>
129 <td><a href="#Pep8Fixer.__fixE125">__fixE125</a></td> 129 <td><a href="#Pep8Fixer.__fixE125">__fixE125</a></td>
130 <td>Private method to fix the indentation of continuation lines not distinguishable from next logical line (E125).</td> 130 <td>Private method to fix the indentation of continuation lines not distinguishable from next logical line.</td>
131 </tr><tr> 131 </tr><tr>
132 <td><a href="#Pep8Fixer.__fixE126">__fixE126</a></td> 132 <td><a href="#Pep8Fixer.__fixE126">__fixE126</a></td>
133 <td>Private method to fix over-indented/under-indented hanging indentation (E126, E133).</td> 133 <td>Private method to fix over-indented/under-indented hanging indentation.</td>
134 </tr><tr> 134 </tr><tr>
135 <td><a href="#Pep8Fixer.__fixE127">__fixE127</a></td> 135 <td><a href="#Pep8Fixer.__fixE127">__fixE127</a></td>
136 <td>Private method to fix over/under indented lines (E127, E128).</td> 136 <td>Private method to fix over/under indented lines.</td>
137 </tr><tr> 137 </tr><tr>
138 <td><a href="#Pep8Fixer.__fixE201">__fixE201</a></td> 138 <td><a href="#Pep8Fixer.__fixE201">__fixE201</a></td>
139 <td>Private method to fix extraneous whitespace (E201, E202, E203, E211).</td> 139 <td>Private method to fix extraneous whitespace.</td>
140 </tr><tr> 140 </tr><tr>
141 <td><a href="#Pep8Fixer.__fixE221">__fixE221</a></td> 141 <td><a href="#Pep8Fixer.__fixE221">__fixE221</a></td>
142 <td>Private method to fix extraneous whitespace around operator or keyword (E221, E222, E223, E224, E225, E226, E227, E228, E241, E242, E271, E272, E273, E274).</td> 142 <td>Private method to fix extraneous whitespace around operator or keyword.</td>
143 </tr><tr> 143 </tr><tr>
144 <td><a href="#Pep8Fixer.__fixE231">__fixE231</a></td> 144 <td><a href="#Pep8Fixer.__fixE231">__fixE231</a></td>
145 <td>Private method to fix missing whitespace after ',;:'.</td> 145 <td>Private method to fix missing whitespace after ',;:'.</td>
146 </tr><tr> 146 </tr><tr>
147 <td><a href="#Pep8Fixer.__fixE251">__fixE251</a></td> 147 <td><a href="#Pep8Fixer.__fixE251">__fixE251</a></td>
148 <td>Private method to fix extraneous whitespace around keyword and default parameter equals (E251).</td> 148 <td>Private method to fix extraneous whitespace around keyword and default parameter equals.</td>
149 </tr><tr> 149 </tr><tr>
150 <td><a href="#Pep8Fixer.__fixE261">__fixE261</a></td> 150 <td><a href="#Pep8Fixer.__fixE261">__fixE261</a></td>
151 <td>Private method to fix whitespace before or after inline comment (E261, E262).</td> 151 <td>Private method to fix whitespace before or after inline comment.</td>
152 </tr><tr> 152 </tr><tr>
153 <td><a href="#Pep8Fixer.__fixE301">__fixE301</a></td> 153 <td><a href="#Pep8Fixer.__fixE301">__fixE301</a></td>
154 <td>Private method to fix the need for one blank line (E301).</td> 154 <td>Private method to fix the need for one blank line.</td>
155 </tr><tr> 155 </tr><tr>
156 <td><a href="#Pep8Fixer.__fixE302">__fixE302</a></td> 156 <td><a href="#Pep8Fixer.__fixE302">__fixE302</a></td>
157 <td>Private method to fix the need for two blank lines (E302).</td> 157 <td>Private method to fix the need for two blank lines.</td>
158 </tr><tr> 158 </tr><tr>
159 <td><a href="#Pep8Fixer.__fixE303">__fixE303</a></td> 159 <td><a href="#Pep8Fixer.__fixE303">__fixE303</a></td>
160 <td>Private method to fix superfluous blank lines (E303).</td> 160 <td>Private method to fix superfluous blank lines.</td>
161 </tr><tr> 161 </tr><tr>
162 <td><a href="#Pep8Fixer.__fixE304">__fixE304</a></td> 162 <td><a href="#Pep8Fixer.__fixE304">__fixE304</a></td>
163 <td>Private method to fix superfluous blank lines after a function decorator (E304).</td> 163 <td>Private method to fix superfluous blank lines after a function decorator.</td>
164 </tr><tr> 164 </tr><tr>
165 <td><a href="#Pep8Fixer.__fixE401">__fixE401</a></td> 165 <td><a href="#Pep8Fixer.__fixE401">__fixE401</a></td>
166 <td>Private method to fix multiple imports on one line (E401).</td> 166 <td>Private method to fix multiple imports on one line.</td>
167 </tr><tr> 167 </tr><tr>
168 <td><a href="#Pep8Fixer.__fixE501">__fixE501</a></td> 168 <td><a href="#Pep8Fixer.__fixE501">__fixE501</a></td>
169 <td>Private method to fix the long lines by breaking them (E501).</td> 169 <td>Private method to fix the long lines by breaking them.</td>
170 </tr><tr> 170 </tr><tr>
171 <td><a href="#Pep8Fixer.__fixE502">__fixE502</a></td> 171 <td><a href="#Pep8Fixer.__fixE502">__fixE502</a></td>
172 <td>Private method to fix redundant backslash within brackets (E502).</td> 172 <td>Private method to fix redundant backslash within brackets.</td>
173 </tr><tr> 173 </tr><tr>
174 <td><a href="#Pep8Fixer.__fixE701">__fixE701</a></td> 174 <td><a href="#Pep8Fixer.__fixE701">__fixE701</a></td>
175 <td>Private method to fix colon-separated compound statements (E701).</td> 175 <td>Private method to fix colon-separated compound statements.</td>
176 </tr><tr> 176 </tr><tr>
177 <td><a href="#Pep8Fixer.__fixE702">__fixE702</a></td> 177 <td><a href="#Pep8Fixer.__fixE702">__fixE702</a></td>
178 <td>Private method to fix semicolon-separated compound statements (E702, E703).</td> 178 <td>Private method to fix semicolon-separated compound statements.</td>
179 </tr><tr> 179 </tr><tr>
180 <td><a href="#Pep8Fixer.__fixE711">__fixE711</a></td> 180 <td><a href="#Pep8Fixer.__fixE711">__fixE711</a></td>
181 <td>Private method to fix comparison with None (E711, E712).</td> 181 <td>Private method to fix comparison with None.</td>
182 </tr><tr> 182 </tr><tr>
183 <td><a href="#Pep8Fixer.__fixN804">__fixN804</a></td> 183 <td><a href="#Pep8Fixer.__fixN804">__fixN804</a></td>
184 <td>Private method to fix a wrong first argument of normal and class methods (N804, N805).</td> 184 <td>Private method to fix a wrong first argument of normal and class methods.</td>
185 </tr><tr> 185 </tr><tr>
186 <td><a href="#Pep8Fixer.__fixN806">__fixN806</a></td> 186 <td><a href="#Pep8Fixer.__fixN806">__fixN806</a></td>
187 <td>Private method to fix a wrong first argument of static methods (N806).</td> 187 <td>Private method to fix a wrong first argument of static methods.</td>
188 </tr><tr> 188 </tr><tr>
189 <td><a href="#Pep8Fixer.__fixReindent">__fixReindent</a></td> 189 <td><a href="#Pep8Fixer.__fixReindent">__fixReindent</a></td>
190 <td>Private method to fix a badly indented line.</td> 190 <td>Private method to fix a badly indented line.</td>
191 </tr><tr> 191 </tr><tr>
192 <td><a href="#Pep8Fixer.__fixW291">__fixW291</a></td> 192 <td><a href="#Pep8Fixer.__fixW291">__fixW291</a></td>
193 <td>Private method to fix trailing whitespace (W291, W293).</td> 193 <td>Private method to fix trailing whitespace.</td>
194 </tr><tr> 194 </tr><tr>
195 <td><a href="#Pep8Fixer.__fixW292">__fixW292</a></td> 195 <td><a href="#Pep8Fixer.__fixW292">__fixW292</a></td>
196 <td>Private method to fix a missing newline at the end of file (W292).</td> 196 <td>Private method to fix a missing newline at the end of file.</td>
197 </tr><tr> 197 </tr><tr>
198 <td><a href="#Pep8Fixer.__fixW391">__fixW391</a></td> 198 <td><a href="#Pep8Fixer.__fixW391">__fixW391</a></td>
199 <td>Private method to fix trailing blank lines (W391).</td> 199 <td>Private method to fix trailing blank lines.</td>
200 </tr><tr> 200 </tr><tr>
201 <td><a href="#Pep8Fixer.__fixW603">__fixW603</a></td> 201 <td><a href="#Pep8Fixer.__fixW603">__fixW603</a></td>
202 <td>Private method to fix the not equal notation (W603).</td> 202 <td>Private method to fix the not equal notation.</td>
203 </tr><tr> 203 </tr><tr>
204 <td><a href="#Pep8Fixer.__fixWhitespace">__fixWhitespace</a></td> 204 <td><a href="#Pep8Fixer.__fixWhitespace">__fixWhitespace</a></td>
205 <td>Private method to correct whitespace at the given offset.</td> 205 <td>Private method to correct whitespace at the given offset.</td>
206 </tr><tr> 206 </tr><tr>
207 <td><a href="#Pep8Fixer.__getEol">__getEol</a></td> 207 <td><a href="#Pep8Fixer.__getEol">__getEol</a></td>
299 </dd> 299 </dd>
300 </dl><a NAME="Pep8Fixer.__fixD111" ID="Pep8Fixer.__fixD111"></a> 300 </dl><a NAME="Pep8Fixer.__fixD111" ID="Pep8Fixer.__fixD111"></a>
301 <h4>Pep8Fixer.__fixD111</h4> 301 <h4>Pep8Fixer.__fixD111</h4>
302 <b>__fixD111</b>(<i>code, line, pos</i>) 302 <b>__fixD111</b>(<i>code, line, pos</i>)
303 <p> 303 <p>
304 Private method to fix docstring enclosed in wrong quotes (D111). 304 Private method to fix docstring enclosed in wrong quotes.
305 </p><p>
306 Codes: D111
305 </p><dl> 307 </p><dl>
306 <dt><i>code</i></dt> 308 <dt><i>code</i></dt>
307 <dd> 309 <dd>
308 code of the issue (string) 310 code of the issue (string)
309 </dd><dt><i>line</i></dt> 311 </dd><dt><i>line</i></dt>
322 </dd> 324 </dd>
323 </dl><a NAME="Pep8Fixer.__fixD112" ID="Pep8Fixer.__fixD112"></a> 325 </dl><a NAME="Pep8Fixer.__fixD112" ID="Pep8Fixer.__fixD112"></a>
324 <h4>Pep8Fixer.__fixD112</h4> 326 <h4>Pep8Fixer.__fixD112</h4>
325 <b>__fixD112</b>(<i>code, line, pos</i>) 327 <b>__fixD112</b>(<i>code, line, pos</i>)
326 <p> 328 <p>
327 Private method to fix docstring 'r' or 'u' in leading quotes 329 Private method to fix docstring 'r' or 'u' in leading quotes.
328 (D112, D113). 330 </p><p>
331 Codes: D112, D113
329 </p><dl> 332 </p><dl>
330 <dt><i>code</i></dt> 333 <dt><i>code</i></dt>
331 <dd> 334 <dd>
332 code of the issue (string) 335 code of the issue (string)
333 </dd><dt><i>line</i></dt> 336 </dd><dt><i>line</i></dt>
346 </dd> 349 </dd>
347 </dl><a NAME="Pep8Fixer.__fixD121" ID="Pep8Fixer.__fixD121"></a> 350 </dl><a NAME="Pep8Fixer.__fixD121" ID="Pep8Fixer.__fixD121"></a>
348 <h4>Pep8Fixer.__fixD121</h4> 351 <h4>Pep8Fixer.__fixD121</h4>
349 <b>__fixD121</b>(<i>code, line, pos, apply=False</i>) 352 <b>__fixD121</b>(<i>code, line, pos, apply=False</i>)
350 <p> 353 <p>
351 Private method to fix a single line docstring on multiple lines (D121). 354 Private method to fix a single line docstring on multiple lines.
355 </p><p>
356 Codes: D121
352 </p><dl> 357 </p><dl>
353 <dt><i>code</i></dt> 358 <dt><i>code</i></dt>
354 <dd> 359 <dd>
355 code of the issue (string) 360 code of the issue (string)
356 </dd><dt><i>line</i></dt> 361 </dd><dt><i>line</i></dt>
374 </dl><a NAME="Pep8Fixer.__fixD131" ID="Pep8Fixer.__fixD131"></a> 379 </dl><a NAME="Pep8Fixer.__fixD131" ID="Pep8Fixer.__fixD131"></a>
375 <h4>Pep8Fixer.__fixD131</h4> 380 <h4>Pep8Fixer.__fixD131</h4>
376 <b>__fixD131</b>(<i>code, line, pos</i>) 381 <b>__fixD131</b>(<i>code, line, pos</i>)
377 <p> 382 <p>
378 Private method to fix a docstring summary not ending with a 383 Private method to fix a docstring summary not ending with a
379 period (D131). 384 period.
385 </p><p>
386 Codes: D131
380 </p><dl> 387 </p><dl>
381 <dt><i>code</i></dt> 388 <dt><i>code</i></dt>
382 <dd> 389 <dd>
383 code of the issue (string) 390 code of the issue (string)
384 </dd><dt><i>line</i></dt> 391 </dd><dt><i>line</i></dt>
398 </dl><a NAME="Pep8Fixer.__fixD141" ID="Pep8Fixer.__fixD141"></a> 405 </dl><a NAME="Pep8Fixer.__fixD141" ID="Pep8Fixer.__fixD141"></a>
399 <h4>Pep8Fixer.__fixD141</h4> 406 <h4>Pep8Fixer.__fixD141</h4>
400 <b>__fixD141</b>(<i>code, line, pos, apply=False</i>) 407 <b>__fixD141</b>(<i>code, line, pos, apply=False</i>)
401 <p> 408 <p>
402 Private method to fix a function/method docstring preceded by a 409 Private method to fix a function/method docstring preceded by a
403 blank line (D141). 410 blank line.
411 </p><p>
412 Codes: D141
404 </p><dl> 413 </p><dl>
405 <dt><i>code</i></dt> 414 <dt><i>code</i></dt>
406 <dd> 415 <dd>
407 code of the issue (string) 416 code of the issue (string)
408 </dd><dt><i>line</i></dt> 417 </dd><dt><i>line</i></dt>
426 </dl><a NAME="Pep8Fixer.__fixD142" ID="Pep8Fixer.__fixD142"></a> 435 </dl><a NAME="Pep8Fixer.__fixD142" ID="Pep8Fixer.__fixD142"></a>
427 <h4>Pep8Fixer.__fixD142</h4> 436 <h4>Pep8Fixer.__fixD142</h4>
428 <b>__fixD142</b>(<i>code, line, pos, apply=False</i>) 437 <b>__fixD142</b>(<i>code, line, pos, apply=False</i>)
429 <p> 438 <p>
430 Private method to fix a class docstring not preceded by a 439 Private method to fix a class docstring not preceded by a
431 blank line (D142). 440 blank line.
441 </p><p>
442 Codes: D142
432 </p><dl> 443 </p><dl>
433 <dt><i>code</i></dt> 444 <dt><i>code</i></dt>
434 <dd> 445 <dd>
435 code of the issue (string) 446 code of the issue (string)
436 </dd><dt><i>line</i></dt> 447 </dd><dt><i>line</i></dt>
454 </dl><a NAME="Pep8Fixer.__fixD143" ID="Pep8Fixer.__fixD143"></a> 465 </dl><a NAME="Pep8Fixer.__fixD143" ID="Pep8Fixer.__fixD143"></a>
455 <h4>Pep8Fixer.__fixD143</h4> 466 <h4>Pep8Fixer.__fixD143</h4>
456 <b>__fixD143</b>(<i>code, line, pos, apply=False</i>) 467 <b>__fixD143</b>(<i>code, line, pos, apply=False</i>)
457 <p> 468 <p>
458 Private method to fix a class docstring not followed by a 469 Private method to fix a class docstring not followed by a
459 blank line (D143). 470 blank line.
471 </p><p>
472 Codes: D143
460 </p><dl> 473 </p><dl>
461 <dt><i>code</i></dt> 474 <dt><i>code</i></dt>
462 <dd> 475 <dd>
463 code of the issue (string) 476 code of the issue (string)
464 </dd><dt><i>line</i></dt> 477 </dd><dt><i>line</i></dt>
482 </dl><a NAME="Pep8Fixer.__fixD144" ID="Pep8Fixer.__fixD144"></a> 495 </dl><a NAME="Pep8Fixer.__fixD144" ID="Pep8Fixer.__fixD144"></a>
483 <h4>Pep8Fixer.__fixD144</h4> 496 <h4>Pep8Fixer.__fixD144</h4>
484 <b>__fixD144</b>(<i>code, line, pos, apply=False</i>) 497 <b>__fixD144</b>(<i>code, line, pos, apply=False</i>)
485 <p> 498 <p>
486 Private method to fix a docstring summary not followed by a 499 Private method to fix a docstring summary not followed by a
487 blank line (D144). 500 blank line.
501 </p><p>
502 Codes: D144
488 </p><dl> 503 </p><dl>
489 <dt><i>code</i></dt> 504 <dt><i>code</i></dt>
490 <dd> 505 <dd>
491 code of the issue (string) 506 code of the issue (string)
492 </dd><dt><i>line</i></dt> 507 </dd><dt><i>line</i></dt>
510 </dl><a NAME="Pep8Fixer.__fixD145" ID="Pep8Fixer.__fixD145"></a> 525 </dl><a NAME="Pep8Fixer.__fixD145" ID="Pep8Fixer.__fixD145"></a>
511 <h4>Pep8Fixer.__fixD145</h4> 526 <h4>Pep8Fixer.__fixD145</h4>
512 <b>__fixD145</b>(<i>code, line, pos, apply=False</i>) 527 <b>__fixD145</b>(<i>code, line, pos, apply=False</i>)
513 <p> 528 <p>
514 Private method to fix the last paragraph of a multi-line docstring 529 Private method to fix the last paragraph of a multi-line docstring
515 not followed by a blank line (D143). 530 not followed by a blank line.
531 </p><p>
532 Codes: D143
516 </p><dl> 533 </p><dl>
517 <dt><i>code</i></dt> 534 <dt><i>code</i></dt>
518 <dd> 535 <dd>
519 code of the issue (string) 536 code of the issue (string)
520 </dd><dt><i>line</i></dt> 537 </dd><dt><i>line</i></dt>
538 </dl><a NAME="Pep8Fixer.__fixD221" ID="Pep8Fixer.__fixD221"></a> 555 </dl><a NAME="Pep8Fixer.__fixD221" ID="Pep8Fixer.__fixD221"></a>
539 <h4>Pep8Fixer.__fixD221</h4> 556 <h4>Pep8Fixer.__fixD221</h4>
540 <b>__fixD221</b>(<i>code, line, pos, apply=False</i>) 557 <b>__fixD221</b>(<i>code, line, pos, apply=False</i>)
541 <p> 558 <p>
542 Private method to fix leading and trailing quotes of docstring 559 Private method to fix leading and trailing quotes of docstring
543 not on separate lines (D221, D222). 560 not on separate lines.
561 </p><p>
562 Codes: D221, D222
544 </p><dl> 563 </p><dl>
545 <dt><i>code</i></dt> 564 <dt><i>code</i></dt>
546 <dd> 565 <dd>
547 code of the issue (string) 566 code of the issue (string)
548 </dd><dt><i>line</i></dt> 567 </dd><dt><i>line</i></dt>
566 </dl><a NAME="Pep8Fixer.__fixD242" ID="Pep8Fixer.__fixD242"></a> 585 </dl><a NAME="Pep8Fixer.__fixD242" ID="Pep8Fixer.__fixD242"></a>
567 <h4>Pep8Fixer.__fixD242</h4> 586 <h4>Pep8Fixer.__fixD242</h4>
568 <b>__fixD242</b>(<i>code, line, pos, apply=False</i>) 587 <b>__fixD242</b>(<i>code, line, pos, apply=False</i>)
569 <p> 588 <p>
570 Private method to fix a class or function/method docstring preceded 589 Private method to fix a class or function/method docstring preceded
571 by a blank line (D242, D244). 590 by a blank line.
591 </p><p>
592 Codes: D242, D244
572 </p><dl> 593 </p><dl>
573 <dt><i>code</i></dt> 594 <dt><i>code</i></dt>
574 <dd> 595 <dd>
575 code of the issue (string) 596 code of the issue (string)
576 </dd><dt><i>line</i></dt> 597 </dd><dt><i>line</i></dt>
594 </dl><a NAME="Pep8Fixer.__fixD243" ID="Pep8Fixer.__fixD243"></a> 615 </dl><a NAME="Pep8Fixer.__fixD243" ID="Pep8Fixer.__fixD243"></a>
595 <h4>Pep8Fixer.__fixD243</h4> 616 <h4>Pep8Fixer.__fixD243</h4>
596 <b>__fixD243</b>(<i>code, line, pos, apply=False</i>) 617 <b>__fixD243</b>(<i>code, line, pos, apply=False</i>)
597 <p> 618 <p>
598 Private method to fix a class or function/method docstring followed 619 Private method to fix a class or function/method docstring followed
599 by a blank line (D243, D245). 620 by a blank line.
621 </p><p>
622 Codes: D243, D245
600 </p><dl> 623 </p><dl>
601 <dt><i>code</i></dt> 624 <dt><i>code</i></dt>
602 <dd> 625 <dd>
603 code of the issue (string) 626 code of the issue (string)
604 </dd><dt><i>line</i></dt> 627 </dd><dt><i>line</i></dt>
622 </dl><a NAME="Pep8Fixer.__fixD247" ID="Pep8Fixer.__fixD247"></a> 645 </dl><a NAME="Pep8Fixer.__fixD247" ID="Pep8Fixer.__fixD247"></a>
623 <h4>Pep8Fixer.__fixD247</h4> 646 <h4>Pep8Fixer.__fixD247</h4>
624 <b>__fixD247</b>(<i>code, line, pos, apply=False</i>) 647 <b>__fixD247</b>(<i>code, line, pos, apply=False</i>)
625 <p> 648 <p>
626 Private method to fix a last paragraph of a docstring followed 649 Private method to fix a last paragraph of a docstring followed
627 by a blank line (D247). 650 by a blank line.
651 </p><p>
652 Codes: D247
628 </p><dl> 653 </p><dl>
629 <dt><i>code</i></dt> 654 <dt><i>code</i></dt>
630 <dd> 655 <dd>
631 code of the issue (string) 656 code of the issue (string)
632 </dd><dt><i>line</i></dt> 657 </dd><dt><i>line</i></dt>
649 </dd> 674 </dd>
650 </dl><a NAME="Pep8Fixer.__fixE101" ID="Pep8Fixer.__fixE101"></a> 675 </dl><a NAME="Pep8Fixer.__fixE101" ID="Pep8Fixer.__fixE101"></a>
651 <h4>Pep8Fixer.__fixE101</h4> 676 <h4>Pep8Fixer.__fixE101</h4>
652 <b>__fixE101</b>(<i>code, line, pos</i>) 677 <b>__fixE101</b>(<i>code, line, pos</i>)
653 <p> 678 <p>
654 Private method to fix obsolete tab usage and indentation errors 679 Private method to fix obsolete tab usage and indentation errors.
655 (E101, E111, W191). 680 </p><p>
681 Codes: E101, E111, W191
656 </p><dl> 682 </p><dl>
657 <dt><i>code</i></dt> 683 <dt><i>code</i></dt>
658 <dd> 684 <dd>
659 code of the issue (string) 685 code of the issue (string)
660 </dd><dt><i>line</i></dt> 686 </dd><dt><i>line</i></dt>
674 </dl><a NAME="Pep8Fixer.__fixE121" ID="Pep8Fixer.__fixE121"></a> 700 </dl><a NAME="Pep8Fixer.__fixE121" ID="Pep8Fixer.__fixE121"></a>
675 <h4>Pep8Fixer.__fixE121</h4> 701 <h4>Pep8Fixer.__fixE121</h4>
676 <b>__fixE121</b>(<i>code, line, pos, apply=False</i>) 702 <b>__fixE121</b>(<i>code, line, pos, apply=False</i>)
677 <p> 703 <p>
678 Private method to fix the indentation of continuation lines and 704 Private method to fix the indentation of continuation lines and
679 closing brackets (E121, E124). 705 closing brackets.
706 </p><p>
707 Codes: E121, E124
680 </p><dl> 708 </p><dl>
681 <dt><i>code</i></dt> 709 <dt><i>code</i></dt>
682 <dd> 710 <dd>
683 code of the issue (string) 711 code of the issue (string)
684 </dd><dt><i>line</i></dt> 712 </dd><dt><i>line</i></dt>
701 </dd> 729 </dd>
702 </dl><a NAME="Pep8Fixer.__fixE122" ID="Pep8Fixer.__fixE122"></a> 730 </dl><a NAME="Pep8Fixer.__fixE122" ID="Pep8Fixer.__fixE122"></a>
703 <h4>Pep8Fixer.__fixE122</h4> 731 <h4>Pep8Fixer.__fixE122</h4>
704 <b>__fixE122</b>(<i>code, line, pos, apply=False</i>) 732 <b>__fixE122</b>(<i>code, line, pos, apply=False</i>)
705 <p> 733 <p>
706 Private method to fix a missing indentation of continuation lines 734 Private method to fix a missing indentation of continuation lines.
707 (E122). 735 </p><p>
736 Codes: E122
708 </p><dl> 737 </p><dl>
709 <dt><i>code</i></dt> 738 <dt><i>code</i></dt>
710 <dd> 739 <dd>
711 code of the issue (string) 740 code of the issue (string)
712 </dd><dt><i>line</i></dt> 741 </dd><dt><i>line</i></dt>
729 </dd> 758 </dd>
730 </dl><a NAME="Pep8Fixer.__fixE123" ID="Pep8Fixer.__fixE123"></a> 759 </dl><a NAME="Pep8Fixer.__fixE123" ID="Pep8Fixer.__fixE123"></a>
731 <h4>Pep8Fixer.__fixE123</h4> 760 <h4>Pep8Fixer.__fixE123</h4>
732 <b>__fixE123</b>(<i>code, line, pos, apply=False</i>) 761 <b>__fixE123</b>(<i>code, line, pos, apply=False</i>)
733 <p> 762 <p>
734 Private method to fix the indentation of a closing bracket lines 763 Private method to fix the indentation of a closing bracket lines.
735 (E123). 764 </p><p>
765 Codes: E123
736 </p><dl> 766 </p><dl>
737 <dt><i>code</i></dt> 767 <dt><i>code</i></dt>
738 <dd> 768 <dd>
739 code of the issue (string) 769 code of the issue (string)
740 </dd><dt><i>line</i></dt> 770 </dd><dt><i>line</i></dt>
758 </dl><a NAME="Pep8Fixer.__fixE125" ID="Pep8Fixer.__fixE125"></a> 788 </dl><a NAME="Pep8Fixer.__fixE125" ID="Pep8Fixer.__fixE125"></a>
759 <h4>Pep8Fixer.__fixE125</h4> 789 <h4>Pep8Fixer.__fixE125</h4>
760 <b>__fixE125</b>(<i>code, line, pos, apply=False</i>) 790 <b>__fixE125</b>(<i>code, line, pos, apply=False</i>)
761 <p> 791 <p>
762 Private method to fix the indentation of continuation lines not 792 Private method to fix the indentation of continuation lines not
763 distinguishable from next logical line (E125). 793 distinguishable from next logical line.
794 </p><p>
795 Codes: E125
764 </p><dl> 796 </p><dl>
765 <dt><i>code</i></dt> 797 <dt><i>code</i></dt>
766 <dd> 798 <dd>
767 code of the issue (string) 799 code of the issue (string)
768 </dd><dt><i>line</i></dt> 800 </dd><dt><i>line</i></dt>
786 </dl><a NAME="Pep8Fixer.__fixE126" ID="Pep8Fixer.__fixE126"></a> 818 </dl><a NAME="Pep8Fixer.__fixE126" ID="Pep8Fixer.__fixE126"></a>
787 <h4>Pep8Fixer.__fixE126</h4> 819 <h4>Pep8Fixer.__fixE126</h4>
788 <b>__fixE126</b>(<i>code, line, pos, apply=False</i>) 820 <b>__fixE126</b>(<i>code, line, pos, apply=False</i>)
789 <p> 821 <p>
790 Private method to fix over-indented/under-indented hanging 822 Private method to fix over-indented/under-indented hanging
791 indentation (E126, E133). 823 indentation.
824 </p><p>
825 Codes: E126, E133
792 </p><dl> 826 </p><dl>
793 <dt><i>code</i></dt> 827 <dt><i>code</i></dt>
794 <dd> 828 <dd>
795 code of the issue (string) 829 code of the issue (string)
796 </dd><dt><i>line</i></dt> 830 </dd><dt><i>line</i></dt>
813 </dd> 847 </dd>
814 </dl><a NAME="Pep8Fixer.__fixE127" ID="Pep8Fixer.__fixE127"></a> 848 </dl><a NAME="Pep8Fixer.__fixE127" ID="Pep8Fixer.__fixE127"></a>
815 <h4>Pep8Fixer.__fixE127</h4> 849 <h4>Pep8Fixer.__fixE127</h4>
816 <b>__fixE127</b>(<i>code, line, pos, apply=False</i>) 850 <b>__fixE127</b>(<i>code, line, pos, apply=False</i>)
817 <p> 851 <p>
818 Private method to fix over/under indented lines (E127, E128). 852 Private method to fix over/under indented lines.
853 </p><p>
854 Codes: E127, E128
819 </p><dl> 855 </p><dl>
820 <dt><i>code</i></dt> 856 <dt><i>code</i></dt>
821 <dd> 857 <dd>
822 code of the issue (string) 858 code of the issue (string)
823 </dd><dt><i>line</i></dt> 859 </dd><dt><i>line</i></dt>
840 </dd> 876 </dd>
841 </dl><a NAME="Pep8Fixer.__fixE201" ID="Pep8Fixer.__fixE201"></a> 877 </dl><a NAME="Pep8Fixer.__fixE201" ID="Pep8Fixer.__fixE201"></a>
842 <h4>Pep8Fixer.__fixE201</h4> 878 <h4>Pep8Fixer.__fixE201</h4>
843 <b>__fixE201</b>(<i>code, line, pos</i>) 879 <b>__fixE201</b>(<i>code, line, pos</i>)
844 <p> 880 <p>
845 Private method to fix extraneous whitespace (E201, E202, 881 Private method to fix extraneous whitespace.
846 E203, E211). 882 </p><p>
883 Codes: E201, E202, E203, E211
847 </p><dl> 884 </p><dl>
848 <dt><i>code</i></dt> 885 <dt><i>code</i></dt>
849 <dd> 886 <dd>
850 code of the issue (string) 887 code of the issue (string)
851 </dd><dt><i>line</i></dt> 888 </dd><dt><i>line</i></dt>
865 </dl><a NAME="Pep8Fixer.__fixE221" ID="Pep8Fixer.__fixE221"></a> 902 </dl><a NAME="Pep8Fixer.__fixE221" ID="Pep8Fixer.__fixE221"></a>
866 <h4>Pep8Fixer.__fixE221</h4> 903 <h4>Pep8Fixer.__fixE221</h4>
867 <b>__fixE221</b>(<i>code, line, pos</i>) 904 <b>__fixE221</b>(<i>code, line, pos</i>)
868 <p> 905 <p>
869 Private method to fix extraneous whitespace around operator or 906 Private method to fix extraneous whitespace around operator or
870 keyword (E221, E222, E223, E224, E225, E226, E227, E228, E241, 907 keyword.
871 E242, E271, E272, E273, E274). 908 </p><p>
909 Codes: E221, E222, E223, E224, E225, E226, E227, E228, E241,
910 E242, E271, E272, E273, E274).
872 </p><dl> 911 </p><dl>
873 <dt><i>code</i></dt> 912 <dt><i>code</i></dt>
874 <dd> 913 <dd>
875 code of the issue (string) 914 code of the issue (string)
876 </dd><dt><i>line</i></dt> 915 </dd><dt><i>line</i></dt>
890 </dl><a NAME="Pep8Fixer.__fixE231" ID="Pep8Fixer.__fixE231"></a> 929 </dl><a NAME="Pep8Fixer.__fixE231" ID="Pep8Fixer.__fixE231"></a>
891 <h4>Pep8Fixer.__fixE231</h4> 930 <h4>Pep8Fixer.__fixE231</h4>
892 <b>__fixE231</b>(<i>code, line, pos</i>) 931 <b>__fixE231</b>(<i>code, line, pos</i>)
893 <p> 932 <p>
894 Private method to fix missing whitespace after ',;:'. 933 Private method to fix missing whitespace after ',;:'.
934 </p><p>
935 Codes: E231
895 </p><dl> 936 </p><dl>
896 <dt><i>code</i></dt> 937 <dt><i>code</i></dt>
897 <dd> 938 <dd>
898 code of the issue (string) 939 code of the issue (string)
899 </dd><dt><i>line</i></dt> 940 </dd><dt><i>line</i></dt>
913 </dl><a NAME="Pep8Fixer.__fixE251" ID="Pep8Fixer.__fixE251"></a> 954 </dl><a NAME="Pep8Fixer.__fixE251" ID="Pep8Fixer.__fixE251"></a>
914 <h4>Pep8Fixer.__fixE251</h4> 955 <h4>Pep8Fixer.__fixE251</h4>
915 <b>__fixE251</b>(<i>code, line, pos</i>) 956 <b>__fixE251</b>(<i>code, line, pos</i>)
916 <p> 957 <p>
917 Private method to fix extraneous whitespace around keyword and 958 Private method to fix extraneous whitespace around keyword and
918 default parameter equals (E251). 959 default parameter equals.
960 </p><p>
961 Codes: E251
919 </p><dl> 962 </p><dl>
920 <dt><i>code</i></dt> 963 <dt><i>code</i></dt>
921 <dd> 964 <dd>
922 code of the issue (string) 965 code of the issue (string)
923 </dd><dt><i>line</i></dt> 966 </dd><dt><i>line</i></dt>
936 </dd> 979 </dd>
937 </dl><a NAME="Pep8Fixer.__fixE261" ID="Pep8Fixer.__fixE261"></a> 980 </dl><a NAME="Pep8Fixer.__fixE261" ID="Pep8Fixer.__fixE261"></a>
938 <h4>Pep8Fixer.__fixE261</h4> 981 <h4>Pep8Fixer.__fixE261</h4>
939 <b>__fixE261</b>(<i>code, line, pos</i>) 982 <b>__fixE261</b>(<i>code, line, pos</i>)
940 <p> 983 <p>
941 Private method to fix whitespace before or after inline comment 984 Private method to fix whitespace before or after inline comment.
942 (E261, E262). 985 </p><p>
986 Codes: E261, E262
943 </p><dl> 987 </p><dl>
944 <dt><i>code</i></dt> 988 <dt><i>code</i></dt>
945 <dd> 989 <dd>
946 code of the issue (string) 990 code of the issue (string)
947 </dd><dt><i>line</i></dt> 991 </dd><dt><i>line</i></dt>
960 </dd> 1004 </dd>
961 </dl><a NAME="Pep8Fixer.__fixE301" ID="Pep8Fixer.__fixE301"></a> 1005 </dl><a NAME="Pep8Fixer.__fixE301" ID="Pep8Fixer.__fixE301"></a>
962 <h4>Pep8Fixer.__fixE301</h4> 1006 <h4>Pep8Fixer.__fixE301</h4>
963 <b>__fixE301</b>(<i>code, line, pos, apply=False</i>) 1007 <b>__fixE301</b>(<i>code, line, pos, apply=False</i>)
964 <p> 1008 <p>
965 Private method to fix the need for one blank line (E301). 1009 Private method to fix the need for one blank line.
1010 </p><p>
1011 Codes: E301
966 </p><dl> 1012 </p><dl>
967 <dt><i>code</i></dt> 1013 <dt><i>code</i></dt>
968 <dd> 1014 <dd>
969 code of the issue (string) 1015 code of the issue (string)
970 </dd><dt><i>line</i></dt> 1016 </dd><dt><i>line</i></dt>
987 </dd> 1033 </dd>
988 </dl><a NAME="Pep8Fixer.__fixE302" ID="Pep8Fixer.__fixE302"></a> 1034 </dl><a NAME="Pep8Fixer.__fixE302" ID="Pep8Fixer.__fixE302"></a>
989 <h4>Pep8Fixer.__fixE302</h4> 1035 <h4>Pep8Fixer.__fixE302</h4>
990 <b>__fixE302</b>(<i>code, line, pos, apply=False</i>) 1036 <b>__fixE302</b>(<i>code, line, pos, apply=False</i>)
991 <p> 1037 <p>
992 Private method to fix the need for two blank lines (E302). 1038 Private method to fix the need for two blank lines.
1039 </p><p>
1040 Codes: E302
993 </p><dl> 1041 </p><dl>
994 <dt><i>code</i></dt> 1042 <dt><i>code</i></dt>
995 <dd> 1043 <dd>
996 code of the issue (string) 1044 code of the issue (string)
997 </dd><dt><i>line</i></dt> 1045 </dd><dt><i>line</i></dt>
1014 </dd> 1062 </dd>
1015 </dl><a NAME="Pep8Fixer.__fixE303" ID="Pep8Fixer.__fixE303"></a> 1063 </dl><a NAME="Pep8Fixer.__fixE303" ID="Pep8Fixer.__fixE303"></a>
1016 <h4>Pep8Fixer.__fixE303</h4> 1064 <h4>Pep8Fixer.__fixE303</h4>
1017 <b>__fixE303</b>(<i>code, line, pos, apply=False</i>) 1065 <b>__fixE303</b>(<i>code, line, pos, apply=False</i>)
1018 <p> 1066 <p>
1019 Private method to fix superfluous blank lines (E303). 1067 Private method to fix superfluous blank lines.
1068 </p><p>
1069 Codes: E303
1020 </p><dl> 1070 </p><dl>
1021 <dt><i>code</i></dt> 1071 <dt><i>code</i></dt>
1022 <dd> 1072 <dd>
1023 code of the issue (string) 1073 code of the issue (string)
1024 </dd><dt><i>line</i></dt> 1074 </dd><dt><i>line</i></dt>
1042 </dl><a NAME="Pep8Fixer.__fixE304" ID="Pep8Fixer.__fixE304"></a> 1092 </dl><a NAME="Pep8Fixer.__fixE304" ID="Pep8Fixer.__fixE304"></a>
1043 <h4>Pep8Fixer.__fixE304</h4> 1093 <h4>Pep8Fixer.__fixE304</h4>
1044 <b>__fixE304</b>(<i>code, line, pos, apply=False</i>) 1094 <b>__fixE304</b>(<i>code, line, pos, apply=False</i>)
1045 <p> 1095 <p>
1046 Private method to fix superfluous blank lines after a function 1096 Private method to fix superfluous blank lines after a function
1047 decorator (E304). 1097 decorator.
1098 </p><p>
1099 Codes: E304
1048 </p><dl> 1100 </p><dl>
1049 <dt><i>code</i></dt> 1101 <dt><i>code</i></dt>
1050 <dd> 1102 <dd>
1051 code of the issue (string) 1103 code of the issue (string)
1052 </dd><dt><i>line</i></dt> 1104 </dd><dt><i>line</i></dt>
1069 </dd> 1121 </dd>
1070 </dl><a NAME="Pep8Fixer.__fixE401" ID="Pep8Fixer.__fixE401"></a> 1122 </dl><a NAME="Pep8Fixer.__fixE401" ID="Pep8Fixer.__fixE401"></a>
1071 <h4>Pep8Fixer.__fixE401</h4> 1123 <h4>Pep8Fixer.__fixE401</h4>
1072 <b>__fixE401</b>(<i>code, line, pos, apply=False</i>) 1124 <b>__fixE401</b>(<i>code, line, pos, apply=False</i>)
1073 <p> 1125 <p>
1074 Private method to fix multiple imports on one line (E401). 1126 Private method to fix multiple imports on one line.
1127 </p><p>
1128 Codes: E401
1075 </p><dl> 1129 </p><dl>
1076 <dt><i>code</i></dt> 1130 <dt><i>code</i></dt>
1077 <dd> 1131 <dd>
1078 code of the issue (string) 1132 code of the issue (string)
1079 </dd><dt><i>line</i></dt> 1133 </dd><dt><i>line</i></dt>
1096 </dd> 1150 </dd>
1097 </dl><a NAME="Pep8Fixer.__fixE501" ID="Pep8Fixer.__fixE501"></a> 1151 </dl><a NAME="Pep8Fixer.__fixE501" ID="Pep8Fixer.__fixE501"></a>
1098 <h4>Pep8Fixer.__fixE501</h4> 1152 <h4>Pep8Fixer.__fixE501</h4>
1099 <b>__fixE501</b>(<i>code, line, pos, apply=False</i>) 1153 <b>__fixE501</b>(<i>code, line, pos, apply=False</i>)
1100 <p> 1154 <p>
1101 Private method to fix the long lines by breaking them (E501). 1155 Private method to fix the long lines by breaking them.
1156 </p><p>
1157 Codes: E501
1102 </p><dl> 1158 </p><dl>
1103 <dt><i>code</i></dt> 1159 <dt><i>code</i></dt>
1104 <dd> 1160 <dd>
1105 code of the issue (string) 1161 code of the issue (string)
1106 </dd><dt><i>line</i></dt> 1162 </dd><dt><i>line</i></dt>
1123 </dd> 1179 </dd>
1124 </dl><a NAME="Pep8Fixer.__fixE502" ID="Pep8Fixer.__fixE502"></a> 1180 </dl><a NAME="Pep8Fixer.__fixE502" ID="Pep8Fixer.__fixE502"></a>
1125 <h4>Pep8Fixer.__fixE502</h4> 1181 <h4>Pep8Fixer.__fixE502</h4>
1126 <b>__fixE502</b>(<i>code, line, pos</i>) 1182 <b>__fixE502</b>(<i>code, line, pos</i>)
1127 <p> 1183 <p>
1128 Private method to fix redundant backslash within brackets (E502). 1184 Private method to fix redundant backslash within brackets.
1185 </p><p>
1186 Codes: E502
1129 </p><dl> 1187 </p><dl>
1130 <dt><i>code</i></dt> 1188 <dt><i>code</i></dt>
1131 <dd> 1189 <dd>
1132 code of the issue (string) 1190 code of the issue (string)
1133 </dd><dt><i>line</i></dt> 1191 </dd><dt><i>line</i></dt>
1146 </dd> 1204 </dd>
1147 </dl><a NAME="Pep8Fixer.__fixE701" ID="Pep8Fixer.__fixE701"></a> 1205 </dl><a NAME="Pep8Fixer.__fixE701" ID="Pep8Fixer.__fixE701"></a>
1148 <h4>Pep8Fixer.__fixE701</h4> 1206 <h4>Pep8Fixer.__fixE701</h4>
1149 <b>__fixE701</b>(<i>code, line, pos, apply=False</i>) 1207 <b>__fixE701</b>(<i>code, line, pos, apply=False</i>)
1150 <p> 1208 <p>
1151 Private method to fix colon-separated compound statements (E701). 1209 Private method to fix colon-separated compound statements.
1210 </p><p>
1211 Codes: E701
1152 </p><dl> 1212 </p><dl>
1153 <dt><i>code</i></dt> 1213 <dt><i>code</i></dt>
1154 <dd> 1214 <dd>
1155 code of the issue (string) 1215 code of the issue (string)
1156 </dd><dt><i>line</i></dt> 1216 </dd><dt><i>line</i></dt>
1173 </dd> 1233 </dd>
1174 </dl><a NAME="Pep8Fixer.__fixE702" ID="Pep8Fixer.__fixE702"></a> 1234 </dl><a NAME="Pep8Fixer.__fixE702" ID="Pep8Fixer.__fixE702"></a>
1175 <h4>Pep8Fixer.__fixE702</h4> 1235 <h4>Pep8Fixer.__fixE702</h4>
1176 <b>__fixE702</b>(<i>code, line, pos, apply=False</i>) 1236 <b>__fixE702</b>(<i>code, line, pos, apply=False</i>)
1177 <p> 1237 <p>
1178 Private method to fix semicolon-separated compound statements 1238 Private method to fix semicolon-separated compound statements.
1179 (E702, E703). 1239 </p><p>
1240 Codes: E702, E703
1180 </p><dl> 1241 </p><dl>
1181 <dt><i>code</i></dt> 1242 <dt><i>code</i></dt>
1182 <dd> 1243 <dd>
1183 code of the issue (string) 1244 code of the issue (string)
1184 </dd><dt><i>line</i></dt> 1245 </dd><dt><i>line</i></dt>
1201 </dd> 1262 </dd>
1202 </dl><a NAME="Pep8Fixer.__fixE711" ID="Pep8Fixer.__fixE711"></a> 1263 </dl><a NAME="Pep8Fixer.__fixE711" ID="Pep8Fixer.__fixE711"></a>
1203 <h4>Pep8Fixer.__fixE711</h4> 1264 <h4>Pep8Fixer.__fixE711</h4>
1204 <b>__fixE711</b>(<i>code, line, pos</i>) 1265 <b>__fixE711</b>(<i>code, line, pos</i>)
1205 <p> 1266 <p>
1206 Private method to fix comparison with None (E711, E712). 1267 Private method to fix comparison with None.
1268 </p><p>
1269 Codes: E711, E712
1207 </p><dl> 1270 </p><dl>
1208 <dt><i>code</i></dt> 1271 <dt><i>code</i></dt>
1209 <dd> 1272 <dd>
1210 code of the issue (string) 1273 code of the issue (string)
1211 </dd><dt><i>line</i></dt> 1274 </dd><dt><i>line</i></dt>
1225 </dl><a NAME="Pep8Fixer.__fixN804" ID="Pep8Fixer.__fixN804"></a> 1288 </dl><a NAME="Pep8Fixer.__fixN804" ID="Pep8Fixer.__fixN804"></a>
1226 <h4>Pep8Fixer.__fixN804</h4> 1289 <h4>Pep8Fixer.__fixN804</h4>
1227 <b>__fixN804</b>(<i>code, line, pos, apply=False</i>) 1290 <b>__fixN804</b>(<i>code, line, pos, apply=False</i>)
1228 <p> 1291 <p>
1229 Private method to fix a wrong first argument of normal and 1292 Private method to fix a wrong first argument of normal and
1230 class methods (N804, N805). 1293 class methods.
1294 </p><p>
1295 Codes: N804, N805
1231 </p><dl> 1296 </p><dl>
1232 <dt><i>code</i></dt> 1297 <dt><i>code</i></dt>
1233 <dd> 1298 <dd>
1234 code of the issue (string) 1299 code of the issue (string)
1235 </dd><dt><i>line</i></dt> 1300 </dd><dt><i>line</i></dt>
1252 </dd> 1317 </dd>
1253 </dl><a NAME="Pep8Fixer.__fixN806" ID="Pep8Fixer.__fixN806"></a> 1318 </dl><a NAME="Pep8Fixer.__fixN806" ID="Pep8Fixer.__fixN806"></a>
1254 <h4>Pep8Fixer.__fixN806</h4> 1319 <h4>Pep8Fixer.__fixN806</h4>
1255 <b>__fixN806</b>(<i>code, line, pos, apply=False</i>) 1320 <b>__fixN806</b>(<i>code, line, pos, apply=False</i>)
1256 <p> 1321 <p>
1257 Private method to fix a wrong first argument of static methods 1322 Private method to fix a wrong first argument of static methods.
1258 (N806). 1323 </p><p>
1324 Codes: N806
1259 </p><dl> 1325 </p><dl>
1260 <dt><i>code</i></dt> 1326 <dt><i>code</i></dt>
1261 <dd> 1327 <dd>
1262 code of the issue (string) 1328 code of the issue (string)
1263 </dd><dt><i>line</i></dt> 1329 </dd><dt><i>line</i></dt>
1290 <dd> 1356 <dd>
1291 line number of the issue (integer) 1357 line number of the issue (integer)
1292 </dd><dt><i>pos</i></dt> 1358 </dd><dt><i>pos</i></dt>
1293 <dd> 1359 <dd>
1294 position inside line (integer) 1360 position inside line (integer)
1361 </dd><dt><i>logical</i></dt>
1362 <dd>
1363 logical line structure
1295 </dd> 1364 </dd>
1296 </dl><dl> 1365 </dl><dl>
1297 <dt>Returns:</dt> 1366 <dt>Returns:</dt>
1298 <dd> 1367 <dd>
1299 flag indicating a change was done (boolean) 1368 flag indicating a change was done (boolean)
1300 </dd> 1369 </dd>
1301 </dl><a NAME="Pep8Fixer.__fixW291" ID="Pep8Fixer.__fixW291"></a> 1370 </dl><a NAME="Pep8Fixer.__fixW291" ID="Pep8Fixer.__fixW291"></a>
1302 <h4>Pep8Fixer.__fixW291</h4> 1371 <h4>Pep8Fixer.__fixW291</h4>
1303 <b>__fixW291</b>(<i>code, line, pos</i>) 1372 <b>__fixW291</b>(<i>code, line, pos</i>)
1304 <p> 1373 <p>
1305 Private method to fix trailing whitespace (W291, W293). 1374 Private method to fix trailing whitespace.
1375 </p><p>
1376 Codes: W291, W293
1306 </p><dl> 1377 </p><dl>
1307 <dt><i>code</i></dt> 1378 <dt><i>code</i></dt>
1308 <dd> 1379 <dd>
1309 code of the issue (string) 1380 code of the issue (string)
1310 </dd><dt><i>line</i></dt> 1381 </dd><dt><i>line</i></dt>
1323 </dd> 1394 </dd>
1324 </dl><a NAME="Pep8Fixer.__fixW292" ID="Pep8Fixer.__fixW292"></a> 1395 </dl><a NAME="Pep8Fixer.__fixW292" ID="Pep8Fixer.__fixW292"></a>
1325 <h4>Pep8Fixer.__fixW292</h4> 1396 <h4>Pep8Fixer.__fixW292</h4>
1326 <b>__fixW292</b>(<i>code, line, pos</i>) 1397 <b>__fixW292</b>(<i>code, line, pos</i>)
1327 <p> 1398 <p>
1328 Private method to fix a missing newline at the end of file (W292). 1399 Private method to fix a missing newline at the end of file.
1400 </p><p>
1401 Codes: W292
1329 </p><dl> 1402 </p><dl>
1330 <dt><i>code</i></dt> 1403 <dt><i>code</i></dt>
1331 <dd> 1404 <dd>
1332 code of the issue (string) 1405 code of the issue (string)
1333 </dd><dt><i>line</i></dt> 1406 </dd><dt><i>line</i></dt>
1346 </dd> 1419 </dd>
1347 </dl><a NAME="Pep8Fixer.__fixW391" ID="Pep8Fixer.__fixW391"></a> 1420 </dl><a NAME="Pep8Fixer.__fixW391" ID="Pep8Fixer.__fixW391"></a>
1348 <h4>Pep8Fixer.__fixW391</h4> 1421 <h4>Pep8Fixer.__fixW391</h4>
1349 <b>__fixW391</b>(<i>code, line, pos</i>) 1422 <b>__fixW391</b>(<i>code, line, pos</i>)
1350 <p> 1423 <p>
1351 Private method to fix trailing blank lines (W391). 1424 Private method to fix trailing blank lines.
1425 </p><p>
1426 Codes: W391
1352 </p><dl> 1427 </p><dl>
1353 <dt><i>code</i></dt> 1428 <dt><i>code</i></dt>
1354 <dd> 1429 <dd>
1355 code of the issue (string) 1430 code of the issue (string)
1356 </dd><dt><i>line</i></dt> 1431 </dd><dt><i>line</i></dt>
1369 </dd> 1444 </dd>
1370 </dl><a NAME="Pep8Fixer.__fixW603" ID="Pep8Fixer.__fixW603"></a> 1445 </dl><a NAME="Pep8Fixer.__fixW603" ID="Pep8Fixer.__fixW603"></a>
1371 <h4>Pep8Fixer.__fixW603</h4> 1446 <h4>Pep8Fixer.__fixW603</h4>
1372 <b>__fixW603</b>(<i>code, line, pos</i>) 1447 <b>__fixW603</b>(<i>code, line, pos</i>)
1373 <p> 1448 <p>
1374 Private method to fix the not equal notation (W603). 1449 Private method to fix the not equal notation.
1450 </p><p>
1451 Codes: W603
1375 </p><dl> 1452 </p><dl>
1376 <dt><i>code</i></dt> 1453 <dt><i>code</i></dt>
1377 <dd> 1454 <dd>
1378 code of the issue (string) 1455 code of the issue (string)
1379 </dd><dt><i>line</i></dt> 1456 </dd><dt><i>line</i></dt>
1494 </dl><a NAME="Pep8Fixer.finalize" ID="Pep8Fixer.finalize"></a> 1571 </dl><a NAME="Pep8Fixer.finalize" ID="Pep8Fixer.finalize"></a>
1495 <h4>Pep8Fixer.finalize</h4> 1572 <h4>Pep8Fixer.finalize</h4>
1496 <b>finalize</b>(<i></i>) 1573 <b>finalize</b>(<i></i>)
1497 <p> 1574 <p>
1498 Public method to apply all deferred fixes. 1575 Public method to apply all deferred fixes.
1499 </p><a NAME="Pep8Fixer.fixIssue" ID="Pep8Fixer.fixIssue"></a> 1576 </p><dl>
1577 <dt>Returns:</dt>
1578 <dd>
1579 dictionary containing the fix results
1580 </dd>
1581 </dl><a NAME="Pep8Fixer.fixIssue" ID="Pep8Fixer.fixIssue"></a>
1500 <h4>Pep8Fixer.fixIssue</h4> 1582 <h4>Pep8Fixer.fixIssue</h4>
1501 <b>fixIssue</b>(<i>line, pos, message</i>) 1583 <b>fixIssue</b>(<i>line, pos, message</i>)
1502 <p> 1584 <p>
1503 Public method to fix the fixable issues. 1585 Public method to fix the fixable issues.
1504 </p><dl> 1586 </p><dl>
1807 <b>__normalizeMultiline</b>(<i>text</i>) 1889 <b>__normalizeMultiline</b>(<i>text</i>)
1808 <p> 1890 <p>
1809 Private method to remove multiline-related code that will cause syntax 1891 Private method to remove multiline-related code that will cause syntax
1810 error. 1892 error.
1811 </p><dl> 1893 </p><dl>
1812 <dt><i>line</i></dt> 1894 <dt><i>text</i></dt>
1813 <dd> 1895 <dd>
1814 code line to work on (string) 1896 code line to work on (string)
1815 </dd> 1897 </dd>
1816 </dl><dl> 1898 </dl><dl>
1817 <dt>Returns:</dt> 1899 <dt>Returns:</dt>
1933 </p><dl> 2015 </p><dl>
1934 <dt><i>tokens</i></dt> 2016 <dt><i>tokens</i></dt>
1935 <dd> 2017 <dd>
1936 tokens generator (tokenize._tokenize) 2018 tokens generator (tokenize._tokenize)
1937 </dd> 2019 </dd>
2020 </dl><dl>
2021 <dt>Returns:</dt>
2022 <dd>
2023 reference to the generated statistics
2024 </dd>
1938 </dl><a NAME="Pep8Reindenter.__getlspace" ID="Pep8Reindenter.__getlspace"></a> 2025 </dl><a NAME="Pep8Reindenter.__getlspace" ID="Pep8Reindenter.__getlspace"></a>
1939 <h4>Pep8Reindenter.__getlspace</h4> 2026 <h4>Pep8Reindenter.__getlspace</h4>
1940 <b>__getlspace</b>(<i>line</i>) 2027 <b>__getlspace</b>(<i>line</i>)
1941 <p> 2028 <p>
1942 Private method to count number of leading blanks. 2029 Private method to count number of leading blanks.
1978 </dl><a NAME="Pep8Reindenter.run" ID="Pep8Reindenter.run"></a> 2065 </dl><a NAME="Pep8Reindenter.run" ID="Pep8Reindenter.run"></a>
1979 <h4>Pep8Reindenter.run</h4> 2066 <h4>Pep8Reindenter.run</h4>
1980 <b>run</b>(<i></i>) 2067 <b>run</b>(<i></i>)
1981 <p> 2068 <p>
1982 Public method to run the re-indenter. 2069 Public method to run the re-indenter.
1983 </p> 2070 </p><dl>
2071 <dt>Returns:</dt>
2072 <dd>
2073 flag indicating that a change was done (boolean)
2074 </dd>
2075 </dl>
1984 <div align="right"><a href="#top">Up</a></div> 2076 <div align="right"><a href="#top">Up</a></div>
1985 <hr /> 2077 <hr />
1986 </body></html> 2078 </body></html>

eric ide

mercurial