33 <tr> |
33 <tr> |
34 <td><a href="#M520NameFinder">M520NameFinder</a></td> |
34 <td><a href="#M520NameFinder">M520NameFinder</a></td> |
35 <td>Class to extract a name out of a tree of nodes ignoring names defined within the local scope of a comprehension.</td> |
35 <td>Class to extract a name out of a tree of nodes ignoring names defined within the local scope of a comprehension.</td> |
36 </tr> |
36 </tr> |
37 <tr> |
37 <tr> |
38 <td><a href="#M538Checker">M538Checker</a></td> |
38 <td><a href="#M569Checker">M569Checker</a></td> |
39 <td>Class traversing a 'for' loop body to check for modifications to a loop's mutable iterable.</td> |
39 <td>Class traversing a 'for' loop body to check for modifications to a loop's mutable iterable.</td> |
40 </tr> |
40 </tr> |
41 <tr> |
41 <tr> |
42 <td><a href="#MiscellaneousChecker">MiscellaneousChecker</a></td> |
42 <td><a href="#MiscellaneousChecker">MiscellaneousChecker</a></td> |
43 <td>Class implementing a checker for miscellaneous checks.</td> |
43 <td>Class implementing a checker for miscellaneous checks.</td> |
187 <tr> |
187 <tr> |
188 <td><a href="#BugBearVisitor.__checkForM535">__checkForM535</a></td> |
188 <td><a href="#BugBearVisitor.__checkForM535">__checkForM535</a></td> |
189 <td>Private method to check that a static key isn't used in a dict comprehension.</td> |
189 <td>Private method to check that a static key isn't used in a dict comprehension.</td> |
190 </tr> |
190 </tr> |
191 <tr> |
191 <tr> |
192 <td><a href="#BugBearVisitor.__checkForM538">__checkForM538</a></td> |
192 <td><a href="#BugBearVisitor.__checkForM569">__checkForM569</a></td> |
193 <td>Private method to check for changes to a loop's mutable iterable.</td> |
193 <td>Private method to check for changes to a loop's mutable iterable.</td> |
194 </tr> |
194 </tr> |
195 <tr> |
195 <tr> |
196 <td><a href="#BugBearVisitor.__checkRedundantExcepthandlers">__checkRedundantExcepthandlers</a></td> |
196 <td><a href="#BugBearVisitor.__checkRedundantExcepthandlers">__checkRedundantExcepthandlers</a></td> |
197 <td>Private method to check for redundant exception types in an exception handler.</td> |
197 <td>Private method to check for redundant exception types in an exception handler.</td> |
709 <dt><i>node</i> (ast.DictComp)</dt> |
709 <dt><i>node</i> (ast.DictComp)</dt> |
710 <dd> |
710 <dd> |
711 reference to the node to be processed |
711 reference to the node to be processed |
712 </dd> |
712 </dd> |
713 </dl> |
713 </dl> |
714 <a NAME="BugBearVisitor.__checkForM538" ID="BugBearVisitor.__checkForM538"></a> |
714 <a NAME="BugBearVisitor.__checkForM569" ID="BugBearVisitor.__checkForM569"></a> |
715 <h4>BugBearVisitor.__checkForM538</h4> |
715 <h4>BugBearVisitor.__checkForM569</h4> |
716 <b>__checkForM538</b>(<i>node</i>) |
716 <b>__checkForM569</b>(<i>node</i>) |
717 <p> |
717 <p> |
718 Private method to check for changes to a loop's mutable iterable. |
718 Private method to check for changes to a loop's mutable iterable. |
719 </p> |
719 </p> |
720 |
720 |
721 <dl> |
721 <dl> |
1869 </table> |
1869 </table> |
1870 |
1870 |
1871 <h3>Methods</h3> |
1871 <h3>Methods</h3> |
1872 <table> |
1872 <table> |
1873 <tr> |
1873 <tr> |
1874 <td><a href="#M538Checker.__init__">M538Checker</a></td> |
1874 <td><a href="#M569Checker.__init__">M569Checker</a></td> |
1875 <td>Constructor</td> |
1875 <td>Constructor</td> |
1876 </tr> |
1876 </tr> |
1877 <tr> |
1877 <tr> |
1878 <td><a href="#M538Checker.visit">visit</a></td> |
1878 <td><a href="#M569Checker.visit">visit</a></td> |
1879 <td>Public method to inspect an ast node.</td> |
1879 <td>Public method to inspect an ast node.</td> |
1880 </tr> |
1880 </tr> |
1881 <tr> |
1881 <tr> |
1882 <td><a href="#M538Checker.visit_Call">visit_Call</a></td> |
1882 <td><a href="#M569Checker.visit_Call">visit_Call</a></td> |
1883 <td>Public method handling 'Call' nodes.</td> |
1883 <td>Public method handling 'Call' nodes.</td> |
1884 </tr> |
1884 </tr> |
1885 <tr> |
1885 <tr> |
1886 <td><a href="#M538Checker.visit_Delete">visit_Delete</a></td> |
1886 <td><a href="#M569Checker.visit_Delete">visit_Delete</a></td> |
1887 <td>Public method handling 'Delete' nodes.</td> |
1887 <td>Public method handling 'Delete' nodes.</td> |
1888 </tr> |
1888 </tr> |
1889 </table> |
1889 </table> |
1890 |
1890 |
1891 <h3>Static Methods</h3> |
1891 <h3>Static Methods</h3> |
1892 <table> |
1892 <table> |
1893 <tr><td>None</td></tr> |
1893 <tr><td>None</td></tr> |
1894 </table> |
1894 </table> |
1895 |
1895 |
1896 |
1896 |
1897 <a NAME="M538Checker.__init__" ID="M538Checker.__init__"></a> |
1897 <a NAME="M569Checker.__init__" ID="M569Checker.__init__"></a> |
1898 <h4>M538Checker (Constructor)</h4> |
1898 <h4>M569Checker (Constructor)</h4> |
1899 <b>M538Checker</b>(<i>name, bugbear</i>) |
1899 <b>M569Checker</b>(<i>name, bugbear</i>) |
1900 <p> |
1900 <p> |
1901 Constructor |
1901 Constructor |
1902 </p> |
1902 </p> |
1903 |
1903 |
1904 <dl> |
1904 <dl> |
1910 <dt><i>bugbear</i> (BugBearVisitor)</dt> |
1910 <dt><i>bugbear</i> (BugBearVisitor)</dt> |
1911 <dd> |
1911 <dd> |
1912 reference to the bugbear visitor |
1912 reference to the bugbear visitor |
1913 </dd> |
1913 </dd> |
1914 </dl> |
1914 </dl> |
1915 <a NAME="M538Checker.visit" ID="M538Checker.visit"></a> |
1915 <a NAME="M569Checker.visit" ID="M569Checker.visit"></a> |
1916 <h4>M538Checker.visit</h4> |
1916 <h4>M569Checker.visit</h4> |
1917 <b>visit</b>(<i>node</i>) |
1917 <b>visit</b>(<i>node</i>) |
1918 <p> |
1918 <p> |
1919 Public method to inspect an ast node. |
1919 Public method to inspect an ast node. |
1920 </p> |
1920 </p> |
1921 <p> |
1921 <p> |
1939 <dt>Return Type:</dt> |
1939 <dt>Return Type:</dt> |
1940 <dd> |
1940 <dd> |
1941 ast.Node |
1941 ast.Node |
1942 </dd> |
1942 </dd> |
1943 </dl> |
1943 </dl> |
1944 <a NAME="M538Checker.visit_Call" ID="M538Checker.visit_Call"></a> |
1944 <a NAME="M569Checker.visit_Call" ID="M569Checker.visit_Call"></a> |
1945 <h4>M538Checker.visit_Call</h4> |
1945 <h4>M569Checker.visit_Call</h4> |
1946 <b>visit_Call</b>(<i>node</i>) |
1946 <b>visit_Call</b>(<i>node</i>) |
1947 <p> |
1947 <p> |
1948 Public method handling 'Call' nodes. |
1948 Public method handling 'Call' nodes. |
1949 </p> |
1949 </p> |
1950 |
1950 |
1953 <dt><i>node</i> (ast.Call)</dt> |
1953 <dt><i>node</i> (ast.Call)</dt> |
1954 <dd> |
1954 <dd> |
1955 reference to the node to be processed |
1955 reference to the node to be processed |
1956 </dd> |
1956 </dd> |
1957 </dl> |
1957 </dl> |
1958 <a NAME="M538Checker.visit_Delete" ID="M538Checker.visit_Delete"></a> |
1958 <a NAME="M569Checker.visit_Delete" ID="M569Checker.visit_Delete"></a> |
1959 <h4>M538Checker.visit_Delete</h4> |
1959 <h4>M569Checker.visit_Delete</h4> |
1960 <b>visit_Delete</b>(<i>node</i>) |
1960 <b>visit_Delete</b>(<i>node</i>) |
1961 <p> |
1961 <p> |
1962 Public method handling 'Delete' nodes. |
1962 Public method handling 'Delete' nodes. |
1963 </p> |
1963 </p> |
1964 |
1964 |