39 <td>Function to compile one Python source file to Python bytecode.</td> |
39 <td>Function to compile one Python source file to Python bytecode.</td> |
40 </tr><tr> |
40 </tr><tr> |
41 <td><a href="#decode">decode</a></td> |
41 <td><a href="#decode">decode</a></td> |
42 <td>Function to decode a text.</td> |
42 <td>Function to decode a text.</td> |
43 </tr><tr> |
43 </tr><tr> |
|
44 <td><a href="#flakesCheck">flakesCheck</a></td> |
|
45 <td>Function to perform a pyflakes check.</td> |
|
46 </tr><tr> |
44 <td><a href="#get_coding">get_coding</a></td> |
47 <td><a href="#get_coding">get_coding</a></td> |
45 <td>Function to get the coding of a text.</td> |
48 <td>Function to get the coding of a text.</td> |
46 </tr> |
49 </tr> |
47 </table> |
50 </table> |
48 <hr /><hr /> |
51 <hr /><hr /> |
58 </dd> |
61 </dd> |
59 </dl><dl> |
62 </dl><dl> |
60 <dt>Returns:</dt> |
63 <dt>Returns:</dt> |
61 <dd> |
64 <dd> |
62 A tuple indicating status (1 = an error was found), the |
65 A tuple indicating status (1 = an error was found), the |
63 filename, the linenumber, the code string and the error message |
66 filename, the linenumber, the code string, the error message |
64 (boolean, string, string, string, string). The values are only |
67 and the full source code (boolean, string, string, string, |
65 valid, if the status equals 1. |
68 string, string). The values are only valid, if the status |
|
69 equals 1. |
66 </dd> |
70 </dd> |
67 </dl> |
71 </dl> |
68 <div align="right"><a href="#top">Up</a></div> |
72 <div align="right"><a href="#top">Up</a></div> |
69 <hr /><hr /> |
73 <hr /><hr /> |
70 <a NAME="decode" ID="decode"></a> |
74 <a NAME="decode" ID="decode"></a> |
79 </dd> |
83 </dd> |
80 </dl><dl> |
84 </dl><dl> |
81 <dt>Returns:</dt> |
85 <dt>Returns:</dt> |
82 <dd> |
86 <dd> |
83 decoded text and encoding |
87 decoded text and encoding |
|
88 </dd> |
|
89 </dl> |
|
90 <div align="right"><a href="#top">Up</a></div> |
|
91 <hr /><hr /> |
|
92 <a NAME="flakesCheck" ID="flakesCheck"></a> |
|
93 <h2>flakesCheck</h2> |
|
94 <b>flakesCheck</b>(<i>fileName, codestring, ignoreStarImportWarnings</i>) |
|
95 <p> |
|
96 Function to perform a pyflakes check. |
|
97 </p><dl> |
|
98 <dt><i>fileName</i></dt> |
|
99 <dd> |
|
100 name of the file (string) |
|
101 </dd><dt><i>codestring</i></dt> |
|
102 <dd> |
|
103 source code to be checked (string) |
|
104 </dd><dt><i>ignoreStarImportWarnings</i></dt> |
|
105 <dd> |
|
106 flag indicating to |
|
107 ignore 'star import' warnings (boolean) |
|
108 </dd> |
|
109 </dl><dl> |
|
110 <dt>Returns:</dt> |
|
111 <dd> |
|
112 list of strings containing the warnings |
|
113 (marker, file name, line number, message) |
84 </dd> |
114 </dd> |
85 </dl> |
115 </dl> |
86 <div align="right"><a href="#top">Up</a></div> |
116 <div align="right"><a href="#top">Up</a></div> |
87 <hr /><hr /> |
117 <hr /><hr /> |
88 <a NAME="get_coding" ID="get_coding"></a> |
118 <a NAME="get_coding" ID="get_coding"></a> |