50 <tr> |
50 <tr> |
51 <td><a href="#analyze">analyze</a></td> |
51 <td><a href="#analyze">analyze</a></td> |
52 <td>Module function used analyze the source of a Python file.</td> |
52 <td>Module function used analyze the source of a Python file.</td> |
53 </tr><tr> |
53 </tr><tr> |
54 <td><a href="#main">main</a></td> |
54 <td><a href="#main">main</a></td> |
55 <td>Modules main function used when called as a script.</td> |
55 <td>Module main function used when called as a script.</td> |
56 </tr><tr> |
56 </tr><tr> |
57 <td><a href="#summarize">summarize</a></td> |
57 <td><a href="#summarize">summarize</a></td> |
58 <td>Module function used to collect overall statistics.</td> |
58 <td>Module function used to collect overall statistics.</td> |
59 </tr> |
59 </tr> |
60 </table> |
60 </table> |
180 </p><dl> |
180 </p><dl> |
181 <dt><i>tok</i></dt> |
181 <dt><i>tok</i></dt> |
182 <dd> |
182 <dd> |
183 the token to be processed (Token) |
183 the token to be processed (Token) |
184 </dd> |
184 </dd> |
|
185 </dl><dl> |
|
186 <dt>Raises <b>ValueError</b>:</dt> |
|
187 <dd> |
|
188 raised to indicate an invalid indentation level |
|
189 </dd> |
185 </dl><a NAME="SourceStat.dump" ID="SourceStat.dump"></a> |
190 </dl><a NAME="SourceStat.dump" ID="SourceStat.dump"></a> |
186 <h4>SourceStat.dump</h4> |
191 <h4>SourceStat.dump</h4> |
187 <b>dump</b>(<i></i>) |
192 <b>dump</b>(<i></i>) |
188 <p> |
193 <p> |
189 Public method used to format and print the collected statistics. |
194 Public method used to format and print the collected statistics. |
306 <hr /><hr /> |
311 <hr /><hr /> |
307 <a NAME="main" ID="main"></a> |
312 <a NAME="main" ID="main"></a> |
308 <h2>main</h2> |
313 <h2>main</h2> |
309 <b>main</b>(<i></i>) |
314 <b>main</b>(<i></i>) |
310 <p> |
315 <p> |
311 Modules main function used when called as a script. |
316 Module main function used when called as a script. |
312 </p><p> |
317 </p><p> |
313 This function simply loops over all files given on the commandline |
318 Loop over all files given on the command line and collect the individual |
314 and collects the individual and overall source code statistics. |
319 and overall source code statistics. |
315 </p> |
320 </p> |
316 <div align="right"><a href="#top">Up</a></div> |
321 <div align="right"><a href="#top">Up</a></div> |
317 <hr /><hr /> |
322 <hr /><hr /> |
318 <a NAME="summarize" ID="summarize"></a> |
323 <a NAME="summarize" ID="summarize"></a> |
319 <h2>summarize</h2> |
324 <h2>summarize</h2> |