Sat, 01 Feb 2014 16:29:24 +0100
Some code style fixes and renaming of UtilitiesPython2.py2flakes to UtilitiesPython2.pyflakes to make it clear, that it is just a copy of the one in Utilities.
--- a/APIs/Python3/eric5.api Sat Feb 01 16:03:01 2014 +0100 +++ b/APIs/Python3/eric5.api Sat Feb 01 16:29:24 2014 +0100 @@ -8680,123 +8680,123 @@ eric5.UtilitiesPython2.pep8.whitespace_around_operator?4(logical_line) eric5.UtilitiesPython2.pep8.whitespace_before_inline_comment?4(logical_line, tokens) eric5.UtilitiesPython2.pep8.whitespace_before_parameters?4(logical_line, tokens) -eric5.UtilitiesPython2.py2flakes.checker.Checker.AND?7 -eric5.UtilitiesPython2.py2flakes.checker.Checker.ASSIGN?4(node) -eric5.UtilitiesPython2.py2flakes.checker.Checker.AUGASSIGN?4(node) -eric5.UtilitiesPython2.py2flakes.checker.Checker.BOOLOP?7 -eric5.UtilitiesPython2.py2flakes.checker.Checker.CLASSDEF?4(node) -eric5.UtilitiesPython2.py2flakes.checker.Checker.COMPREHENSION?7 -eric5.UtilitiesPython2.py2flakes.checker.Checker.CONTINUE?7 -eric5.UtilitiesPython2.py2flakes.checker.Checker.DICTCOMP?4(node) -eric5.UtilitiesPython2.py2flakes.checker.Checker.EXCEPTHANDLER?4(node) -eric5.UtilitiesPython2.py2flakes.checker.Checker.FOR?4(node) -eric5.UtilitiesPython2.py2flakes.checker.Checker.FUNCTIONDEF?4(node) -eric5.UtilitiesPython2.py2flakes.checker.Checker.GENERATOREXP?4(node) -eric5.UtilitiesPython2.py2flakes.checker.Checker.GLOBAL?4(node) -eric5.UtilitiesPython2.py2flakes.checker.Checker.IMPORT?4(node) -eric5.UtilitiesPython2.py2flakes.checker.Checker.IMPORTFROM?4(node) -eric5.UtilitiesPython2.py2flakes.checker.Checker.LAMBDA?4(node) -eric5.UtilitiesPython2.py2flakes.checker.Checker.LISTCOMP?4(node) -eric5.UtilitiesPython2.py2flakes.checker.Checker.LOAD?7 -eric5.UtilitiesPython2.py2flakes.checker.Checker.NAME?4(node) -eric5.UtilitiesPython2.py2flakes.checker.Checker.NONLOCAL?7 -eric5.UtilitiesPython2.py2flakes.checker.Checker.NUM?7 -eric5.UtilitiesPython2.py2flakes.checker.Checker.RETURN?7 -eric5.UtilitiesPython2.py2flakes.checker.Checker.SETCOMP?7 -eric5.UtilitiesPython2.py2flakes.checker.Checker.SLICE?7 -eric5.UtilitiesPython2.py2flakes.checker.Checker.TRY?4(node) -eric5.UtilitiesPython2.py2flakes.checker.Checker.TRYEXCEPT?7 -eric5.UtilitiesPython2.py2flakes.checker.Checker._customBuiltIns?8 -eric5.UtilitiesPython2.py2flakes.checker.Checker._getDoctestExamples?8 -eric5.UtilitiesPython2.py2flakes.checker.Checker.addArgs?4() -eric5.UtilitiesPython2.py2flakes.checker.Checker.addBinding?4(node, value, reportRedef=True) -eric5.UtilitiesPython2.py2flakes.checker.Checker.builtIns?7 -eric5.UtilitiesPython2.py2flakes.checker.Checker.checkDeadScopes?4() -eric5.UtilitiesPython2.py2flakes.checker.Checker.checkUnusedAssignments?4() -eric5.UtilitiesPython2.py2flakes.checker.Checker.collectLoopVars?4() -eric5.UtilitiesPython2.py2flakes.checker.Checker.deferAssignment?4(callable) -eric5.UtilitiesPython2.py2flakes.checker.Checker.deferFunction?4(callable) -eric5.UtilitiesPython2.py2flakes.checker.Checker.descendantOf?4(node, ancestors, stop=None) -eric5.UtilitiesPython2.py2flakes.checker.Checker.differentForks?4(lnode, rnode) -eric5.UtilitiesPython2.py2flakes.checker.Checker.getCommonAncestor?4(lnode, rnode, stop=None) -eric5.UtilitiesPython2.py2flakes.checker.Checker.getDocstring?4(node) -eric5.UtilitiesPython2.py2flakes.checker.Checker.getNodeHandler?4(node_class) -eric5.UtilitiesPython2.py2flakes.checker.Checker.handleChildren?4(tree) -eric5.UtilitiesPython2.py2flakes.checker.Checker.handleDoctests?4(node) -eric5.UtilitiesPython2.py2flakes.checker.Checker.handleNode?4(node, parent) -eric5.UtilitiesPython2.py2flakes.checker.Checker.handleNodeDelete?4(node) -eric5.UtilitiesPython2.py2flakes.checker.Checker.handleNodeLoad?4(node) -eric5.UtilitiesPython2.py2flakes.checker.Checker.handleNodeStore?4(node) -eric5.UtilitiesPython2.py2flakes.checker.Checker.hasParent?4(node, kind) -eric5.UtilitiesPython2.py2flakes.checker.Checker.ignore?4(node) -eric5.UtilitiesPython2.py2flakes.checker.Checker.isDocstring?4(node) -eric5.UtilitiesPython2.py2flakes.checker.Checker.nodeDepth?7 -eric5.UtilitiesPython2.py2flakes.checker.Checker.offset?7 -eric5.UtilitiesPython2.py2flakes.checker.Checker.onFork?4(parent, lnode, rnode, items) -eric5.UtilitiesPython2.py2flakes.checker.Checker.popScope?4() -eric5.UtilitiesPython2.py2flakes.checker.Checker.pushClassScope?4() -eric5.UtilitiesPython2.py2flakes.checker.Checker.pushFunctionScope?4() -eric5.UtilitiesPython2.py2flakes.checker.Checker.pushScope?4(scopeClass=FunctionScope) -eric5.UtilitiesPython2.py2flakes.checker.Checker.report?4(messageClass, *args, **kwargs) -eric5.UtilitiesPython2.py2flakes.checker.Checker.runDeferred?4(deferred) -eric5.UtilitiesPython2.py2flakes.checker.Checker.runFunction?4() -eric5.UtilitiesPython2.py2flakes.checker.Checker.scope?4() -eric5.UtilitiesPython2.py2flakes.checker.Checker.traceTree?7 -eric5.UtilitiesPython2.py2flakes.checker.Checker.withDoctest?7 -eric5.UtilitiesPython2.py2flakes.checker.Checker?1(tree, filename='(none)', builtins=None) -eric5.UtilitiesPython2.py2flakes.checker.FunctionScope.alwaysUsed?7 -eric5.UtilitiesPython2.py2flakes.checker.FunctionScope.usesLocals?7 -eric5.UtilitiesPython2.py2flakes.checker.Scope.importStarred?7 -eric5.UtilitiesPython2.py2flakes.checker._MAGIC_GLOBALS?8 -eric5.UtilitiesPython2.py2flakes.checker.getNodeName?4(node) -eric5.UtilitiesPython2.py2flakes.checker.getNodeType?4(node_class) -eric5.UtilitiesPython2.py2flakes.checker.iter_child_nodes?4(node) -eric5.UtilitiesPython2.py2flakes.checker.names?4(self) -eric5.UtilitiesPython2.py2flakes.checker.unusedAssignments?4(self) -eric5.UtilitiesPython2.py2flakes.messages.DoctestSyntaxError.message?7 -eric5.UtilitiesPython2.py2flakes.messages.DoctestSyntaxError.message_id?7 -eric5.UtilitiesPython2.py2flakes.messages.DoctestSyntaxError?1(filename, loc, position=None) -eric5.UtilitiesPython2.py2flakes.messages.DuplicateArgument.message?7 -eric5.UtilitiesPython2.py2flakes.messages.DuplicateArgument.message_id?7 -eric5.UtilitiesPython2.py2flakes.messages.DuplicateArgument?1(filename, loc, name) -eric5.UtilitiesPython2.py2flakes.messages.ImportShadowedByLoopVar.message?7 -eric5.UtilitiesPython2.py2flakes.messages.ImportShadowedByLoopVar.message_id?7 -eric5.UtilitiesPython2.py2flakes.messages.ImportShadowedByLoopVar?1(filename, loc, name, orig_loc) -eric5.UtilitiesPython2.py2flakes.messages.ImportStarUsed.message?7 -eric5.UtilitiesPython2.py2flakes.messages.ImportStarUsed.message_id?7 -eric5.UtilitiesPython2.py2flakes.messages.ImportStarUsed?1(filename, loc, modname) -eric5.UtilitiesPython2.py2flakes.messages.LateFutureImport.message?7 -eric5.UtilitiesPython2.py2flakes.messages.LateFutureImport.message_id?7 -eric5.UtilitiesPython2.py2flakes.messages.LateFutureImport?1(filename, loc, names) -eric5.UtilitiesPython2.py2flakes.messages.Message.getMessageData?4() -eric5.UtilitiesPython2.py2flakes.messages.Message.message?7 -eric5.UtilitiesPython2.py2flakes.messages.Message.message_args?7 -eric5.UtilitiesPython2.py2flakes.messages.Message.message_id?7 -eric5.UtilitiesPython2.py2flakes.messages.Message?1(filename, loc) -eric5.UtilitiesPython2.py2flakes.messages.Redefined.message?7 -eric5.UtilitiesPython2.py2flakes.messages.Redefined.message_id?7 -eric5.UtilitiesPython2.py2flakes.messages.Redefined?1(filename, loc, name, orig_loc) -eric5.UtilitiesPython2.py2flakes.messages.RedefinedInListComp.message?7 -eric5.UtilitiesPython2.py2flakes.messages.RedefinedInListComp.message_id?7 -eric5.UtilitiesPython2.py2flakes.messages.RedefinedInListComp?1(filename, loc, name, orig_loc) -eric5.UtilitiesPython2.py2flakes.messages.RedefinedWhileUnused.message?7 -eric5.UtilitiesPython2.py2flakes.messages.RedefinedWhileUnused.message_id?7 -eric5.UtilitiesPython2.py2flakes.messages.RedefinedWhileUnused?1(filename, loc, name, orig_loc) -eric5.UtilitiesPython2.py2flakes.messages.UndefinedExport.message?7 -eric5.UtilitiesPython2.py2flakes.messages.UndefinedExport.message_id?7 -eric5.UtilitiesPython2.py2flakes.messages.UndefinedExport?1(filename, loc, name) -eric5.UtilitiesPython2.py2flakes.messages.UndefinedLocal.message?7 -eric5.UtilitiesPython2.py2flakes.messages.UndefinedLocal.message_id?7 -eric5.UtilitiesPython2.py2flakes.messages.UndefinedLocal?1(filename, loc, name, orig_loc) -eric5.UtilitiesPython2.py2flakes.messages.UndefinedName.message?7 -eric5.UtilitiesPython2.py2flakes.messages.UndefinedName.message_id?7 -eric5.UtilitiesPython2.py2flakes.messages.UndefinedName?1(filename, loc, name) -eric5.UtilitiesPython2.py2flakes.messages.UnusedImport.message?7 -eric5.UtilitiesPython2.py2flakes.messages.UnusedImport.message_id?7 -eric5.UtilitiesPython2.py2flakes.messages.UnusedImport?1(filename, loc, name) -eric5.UtilitiesPython2.py2flakes.messages.UnusedVariable.message?7 -eric5.UtilitiesPython2.py2flakes.messages.UnusedVariable.message_id?7 -eric5.UtilitiesPython2.py2flakes.messages.UnusedVariable?1(filename, loc, names) +eric5.UtilitiesPython2.pyflakes.checker.Checker.AND?7 +eric5.UtilitiesPython2.pyflakes.checker.Checker.ASSIGN?4(node) +eric5.UtilitiesPython2.pyflakes.checker.Checker.AUGASSIGN?4(node) +eric5.UtilitiesPython2.pyflakes.checker.Checker.BOOLOP?7 +eric5.UtilitiesPython2.pyflakes.checker.Checker.CLASSDEF?4(node) +eric5.UtilitiesPython2.pyflakes.checker.Checker.COMPREHENSION?7 +eric5.UtilitiesPython2.pyflakes.checker.Checker.CONTINUE?7 +eric5.UtilitiesPython2.pyflakes.checker.Checker.DICTCOMP?4(node) +eric5.UtilitiesPython2.pyflakes.checker.Checker.EXCEPTHANDLER?4(node) +eric5.UtilitiesPython2.pyflakes.checker.Checker.FOR?4(node) +eric5.UtilitiesPython2.pyflakes.checker.Checker.FUNCTIONDEF?4(node) +eric5.UtilitiesPython2.pyflakes.checker.Checker.GENERATOREXP?4(node) +eric5.UtilitiesPython2.pyflakes.checker.Checker.GLOBAL?4(node) +eric5.UtilitiesPython2.pyflakes.checker.Checker.IMPORT?4(node) +eric5.UtilitiesPython2.pyflakes.checker.Checker.IMPORTFROM?4(node) +eric5.UtilitiesPython2.pyflakes.checker.Checker.LAMBDA?4(node) +eric5.UtilitiesPython2.pyflakes.checker.Checker.LISTCOMP?4(node) +eric5.UtilitiesPython2.pyflakes.checker.Checker.LOAD?7 +eric5.UtilitiesPython2.pyflakes.checker.Checker.NAME?4(node) +eric5.UtilitiesPython2.pyflakes.checker.Checker.NONLOCAL?7 +eric5.UtilitiesPython2.pyflakes.checker.Checker.NUM?7 +eric5.UtilitiesPython2.pyflakes.checker.Checker.RETURN?7 +eric5.UtilitiesPython2.pyflakes.checker.Checker.SETCOMP?7 +eric5.UtilitiesPython2.pyflakes.checker.Checker.SLICE?7 +eric5.UtilitiesPython2.pyflakes.checker.Checker.TRY?4(node) +eric5.UtilitiesPython2.pyflakes.checker.Checker.TRYEXCEPT?7 +eric5.UtilitiesPython2.pyflakes.checker.Checker._customBuiltIns?8 +eric5.UtilitiesPython2.pyflakes.checker.Checker._getDoctestExamples?8 +eric5.UtilitiesPython2.pyflakes.checker.Checker.addArgs?4() +eric5.UtilitiesPython2.pyflakes.checker.Checker.addBinding?4(node, value, reportRedef=True) +eric5.UtilitiesPython2.pyflakes.checker.Checker.builtIns?7 +eric5.UtilitiesPython2.pyflakes.checker.Checker.checkDeadScopes?4() +eric5.UtilitiesPython2.pyflakes.checker.Checker.checkUnusedAssignments?4() +eric5.UtilitiesPython2.pyflakes.checker.Checker.collectLoopVars?4() +eric5.UtilitiesPython2.pyflakes.checker.Checker.deferAssignment?4(callable) +eric5.UtilitiesPython2.pyflakes.checker.Checker.deferFunction?4(callable) +eric5.UtilitiesPython2.pyflakes.checker.Checker.descendantOf?4(node, ancestors, stop=None) +eric5.UtilitiesPython2.pyflakes.checker.Checker.differentForks?4(lnode, rnode) +eric5.UtilitiesPython2.pyflakes.checker.Checker.getCommonAncestor?4(lnode, rnode, stop=None) +eric5.UtilitiesPython2.pyflakes.checker.Checker.getDocstring?4(node) +eric5.UtilitiesPython2.pyflakes.checker.Checker.getNodeHandler?4(node_class) +eric5.UtilitiesPython2.pyflakes.checker.Checker.handleChildren?4(tree) +eric5.UtilitiesPython2.pyflakes.checker.Checker.handleDoctests?4(node) +eric5.UtilitiesPython2.pyflakes.checker.Checker.handleNode?4(node, parent) +eric5.UtilitiesPython2.pyflakes.checker.Checker.handleNodeDelete?4(node) +eric5.UtilitiesPython2.pyflakes.checker.Checker.handleNodeLoad?4(node) +eric5.UtilitiesPython2.pyflakes.checker.Checker.handleNodeStore?4(node) +eric5.UtilitiesPython2.pyflakes.checker.Checker.hasParent?4(node, kind) +eric5.UtilitiesPython2.pyflakes.checker.Checker.ignore?4(node) +eric5.UtilitiesPython2.pyflakes.checker.Checker.isDocstring?4(node) +eric5.UtilitiesPython2.pyflakes.checker.Checker.nodeDepth?7 +eric5.UtilitiesPython2.pyflakes.checker.Checker.offset?7 +eric5.UtilitiesPython2.pyflakes.checker.Checker.onFork?4(parent, lnode, rnode, items) +eric5.UtilitiesPython2.pyflakes.checker.Checker.popScope?4() +eric5.UtilitiesPython2.pyflakes.checker.Checker.pushClassScope?4() +eric5.UtilitiesPython2.pyflakes.checker.Checker.pushFunctionScope?4() +eric5.UtilitiesPython2.pyflakes.checker.Checker.pushScope?4(scopeClass=FunctionScope) +eric5.UtilitiesPython2.pyflakes.checker.Checker.report?4(messageClass, *args, **kwargs) +eric5.UtilitiesPython2.pyflakes.checker.Checker.runDeferred?4(deferred) +eric5.UtilitiesPython2.pyflakes.checker.Checker.runFunction?4() +eric5.UtilitiesPython2.pyflakes.checker.Checker.scope?4() +eric5.UtilitiesPython2.pyflakes.checker.Checker.traceTree?7 +eric5.UtilitiesPython2.pyflakes.checker.Checker.withDoctest?7 +eric5.UtilitiesPython2.pyflakes.checker.Checker?1(tree, filename='(none)', builtins=None) +eric5.UtilitiesPython2.pyflakes.checker.FunctionScope.alwaysUsed?7 +eric5.UtilitiesPython2.pyflakes.checker.FunctionScope.usesLocals?7 +eric5.UtilitiesPython2.pyflakes.checker.Scope.importStarred?7 +eric5.UtilitiesPython2.pyflakes.checker._MAGIC_GLOBALS?8 +eric5.UtilitiesPython2.pyflakes.checker.getNodeName?4(node) +eric5.UtilitiesPython2.pyflakes.checker.getNodeType?4(node_class) +eric5.UtilitiesPython2.pyflakes.checker.iter_child_nodes?4(node) +eric5.UtilitiesPython2.pyflakes.checker.names?4(self) +eric5.UtilitiesPython2.pyflakes.checker.unusedAssignments?4(self) +eric5.UtilitiesPython2.pyflakes.messages.DoctestSyntaxError.message?7 +eric5.UtilitiesPython2.pyflakes.messages.DoctestSyntaxError.message_id?7 +eric5.UtilitiesPython2.pyflakes.messages.DoctestSyntaxError?1(filename, loc, position=None) +eric5.UtilitiesPython2.pyflakes.messages.DuplicateArgument.message?7 +eric5.UtilitiesPython2.pyflakes.messages.DuplicateArgument.message_id?7 +eric5.UtilitiesPython2.pyflakes.messages.DuplicateArgument?1(filename, loc, name) +eric5.UtilitiesPython2.pyflakes.messages.ImportShadowedByLoopVar.message?7 +eric5.UtilitiesPython2.pyflakes.messages.ImportShadowedByLoopVar.message_id?7 +eric5.UtilitiesPython2.pyflakes.messages.ImportShadowedByLoopVar?1(filename, loc, name, orig_loc) +eric5.UtilitiesPython2.pyflakes.messages.ImportStarUsed.message?7 +eric5.UtilitiesPython2.pyflakes.messages.ImportStarUsed.message_id?7 +eric5.UtilitiesPython2.pyflakes.messages.ImportStarUsed?1(filename, loc, modname) +eric5.UtilitiesPython2.pyflakes.messages.LateFutureImport.message?7 +eric5.UtilitiesPython2.pyflakes.messages.LateFutureImport.message_id?7 +eric5.UtilitiesPython2.pyflakes.messages.LateFutureImport?1(filename, loc, names) +eric5.UtilitiesPython2.pyflakes.messages.Message.getMessageData?4() +eric5.UtilitiesPython2.pyflakes.messages.Message.message?7 +eric5.UtilitiesPython2.pyflakes.messages.Message.message_args?7 +eric5.UtilitiesPython2.pyflakes.messages.Message.message_id?7 +eric5.UtilitiesPython2.pyflakes.messages.Message?1(filename, loc) +eric5.UtilitiesPython2.pyflakes.messages.Redefined.message?7 +eric5.UtilitiesPython2.pyflakes.messages.Redefined.message_id?7 +eric5.UtilitiesPython2.pyflakes.messages.Redefined?1(filename, loc, name, orig_loc) +eric5.UtilitiesPython2.pyflakes.messages.RedefinedInListComp.message?7 +eric5.UtilitiesPython2.pyflakes.messages.RedefinedInListComp.message_id?7 +eric5.UtilitiesPython2.pyflakes.messages.RedefinedInListComp?1(filename, loc, name, orig_loc) +eric5.UtilitiesPython2.pyflakes.messages.RedefinedWhileUnused.message?7 +eric5.UtilitiesPython2.pyflakes.messages.RedefinedWhileUnused.message_id?7 +eric5.UtilitiesPython2.pyflakes.messages.RedefinedWhileUnused?1(filename, loc, name, orig_loc) +eric5.UtilitiesPython2.pyflakes.messages.UndefinedExport.message?7 +eric5.UtilitiesPython2.pyflakes.messages.UndefinedExport.message_id?7 +eric5.UtilitiesPython2.pyflakes.messages.UndefinedExport?1(filename, loc, name) +eric5.UtilitiesPython2.pyflakes.messages.UndefinedLocal.message?7 +eric5.UtilitiesPython2.pyflakes.messages.UndefinedLocal.message_id?7 +eric5.UtilitiesPython2.pyflakes.messages.UndefinedLocal?1(filename, loc, name, orig_loc) +eric5.UtilitiesPython2.pyflakes.messages.UndefinedName.message?7 +eric5.UtilitiesPython2.pyflakes.messages.UndefinedName.message_id?7 +eric5.UtilitiesPython2.pyflakes.messages.UndefinedName?1(filename, loc, name) +eric5.UtilitiesPython2.pyflakes.messages.UnusedImport.message?7 +eric5.UtilitiesPython2.pyflakes.messages.UnusedImport.message_id?7 +eric5.UtilitiesPython2.pyflakes.messages.UnusedImport?1(filename, loc, name) +eric5.UtilitiesPython2.pyflakes.messages.UnusedVariable.message?7 +eric5.UtilitiesPython2.pyflakes.messages.UnusedVariable.message_id?7 +eric5.UtilitiesPython2.pyflakes.messages.UnusedVariable?1(filename, loc, names) eric5.VCS.CommandOptionsDialog.VcsCommandOptionsDialog.getOptions?4() eric5.VCS.CommandOptionsDialog.VcsCommandOptionsDialog?1(vcs, parent=None) eric5.VCS.ProjectBrowserHelper.VcsProjectBrowserHelper._VCSAdd?5()
--- a/Documentation/Help/source.qhp Sat Feb 01 16:03:01 2014 +0100 +++ b/Documentation/Help/source.qhp Sat Feb 01 16:29:24 2014 +0100 @@ -968,9 +968,9 @@ <section title="eric5.Utilities.uic" ref="eric5.Utilities.uic.html" /> </section> <section title="eric5.UtilitiesPython2" ref="index-eric5.UtilitiesPython2.html"> - <section title="eric5.UtilitiesPython2.py2flakes" ref="index-eric5.UtilitiesPython2.py2flakes.html"> - <section title="eric5.UtilitiesPython2.py2flakes.checker" ref="eric5.UtilitiesPython2.py2flakes.checker.html" /> - <section title="eric5.UtilitiesPython2.py2flakes.messages" ref="eric5.UtilitiesPython2.py2flakes.messages.html" /> + <section title="eric5.UtilitiesPython2.pyflakes" ref="index-eric5.UtilitiesPython2.pyflakes.html"> + <section title="eric5.UtilitiesPython2.pyflakes.checker" ref="eric5.UtilitiesPython2.pyflakes.checker.html" /> + <section title="eric5.UtilitiesPython2.pyflakes.messages" ref="eric5.UtilitiesPython2.pyflakes.messages.html" /> </section> <section title="eric5.UtilitiesPython2.CodeStyleChecker" ref="eric5.UtilitiesPython2.CodeStyleChecker.html" /> <section title="eric5.UtilitiesPython2.DocStyleCheckerPy2" ref="eric5.UtilitiesPython2.DocStyleCheckerPy2.html" /> @@ -1341,7 +1341,7 @@ <keyword name="ApplicationPage (Module)" id="ApplicationPage (Module)" ref="eric5.Preferences.ConfigurationPages.ApplicationPage.html" /> <keyword name="ApplicationPage.save" id="ApplicationPage.save" ref="eric5.Preferences.ConfigurationPages.ApplicationPage.html#ApplicationPage.save" /> <keyword name="Argument" id="Argument" ref="eric5.Utilities.pyflakes.checker.html#Argument" /> - <keyword name="Argument" id="Argument" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Argument" /> + <keyword name="Argument" id="Argument" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Argument" /> <keyword name="ArgumentsError" id="ArgumentsError" ref="eric5.E5Gui.E5Action.html#ArgumentsError" /> <keyword name="ArgumentsError (Constructor)" id="ArgumentsError (Constructor)" ref="eric5.E5Gui.E5Action.html#ArgumentsError.__init__" /> <keyword name="ArgumentsError.__repr__" id="ArgumentsError.__repr__" ref="eric5.E5Gui.E5Action.html#ArgumentsError.__repr__" /> @@ -1350,7 +1350,7 @@ <keyword name="ArrayElementVarItem (Constructor)" id="ArrayElementVarItem (Constructor)" ref="eric5.Debugger.VariablesViewer.html#ArrayElementVarItem.__init__" /> <keyword name="ArrayElementVarItem.key" id="ArrayElementVarItem.key" ref="eric5.Debugger.VariablesViewer.html#ArrayElementVarItem.key" /> <keyword name="Assignment" id="Assignment" ref="eric5.Utilities.pyflakes.checker.html#Assignment" /> - <keyword name="Assignment" id="Assignment" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Assignment" /> + <keyword name="Assignment" id="Assignment" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Assignment" /> <keyword name="AssociationItem" id="AssociationItem" ref="eric5.Graphics.AssociationItem.html#AssociationItem" /> <keyword name="AssociationItem (Constructor)" id="AssociationItem (Constructor)" ref="eric5.Graphics.AssociationItem.html#AssociationItem.__init__" /> <keyword name="AssociationItem (Module)" id="AssociationItem (Module)" ref="eric5.Graphics.AssociationItem.html" /> @@ -1506,7 +1506,7 @@ <keyword name="BinaryModel.setData" id="BinaryModel.setData" ref="eric5.UI.NumbersWidget.html#BinaryModel.setData" /> <keyword name="BinaryModel.setValue" id="BinaryModel.setValue" ref="eric5.UI.NumbersWidget.html#BinaryModel.setValue" /> <keyword name="Binding" id="Binding" ref="eric5.Utilities.pyflakes.checker.html#Binding" /> - <keyword name="Binding" id="Binding" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Binding" /> + <keyword name="Binding" id="Binding" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Binding" /> <keyword name="BookmarkActionSelectionDialog" id="BookmarkActionSelectionDialog" ref="eric5.Helpviewer.UrlBar.BookmarkActionSelectionDialog.html#BookmarkActionSelectionDialog" /> <keyword name="BookmarkActionSelectionDialog (Constructor)" id="BookmarkActionSelectionDialog (Constructor)" ref="eric5.Helpviewer.UrlBar.BookmarkActionSelectionDialog.html#BookmarkActionSelectionDialog.__init__" /> <keyword name="BookmarkActionSelectionDialog (Module)" id="BookmarkActionSelectionDialog (Module)" ref="eric5.Helpviewer.UrlBar.BookmarkActionSelectionDialog.html" /> @@ -1973,51 +1973,51 @@ <keyword name="Checker" id="Checker" ref="eric5.Plugins.CheckerPlugins.CodeStyleChecker.pep8.html#Checker" /> <keyword name="Checker" id="Checker" ref="eric5.Utilities.pyflakes.checker.html#Checker" /> <keyword name="Checker" id="Checker" ref="eric5.UtilitiesPython2.pep8.html#Checker" /> - <keyword name="Checker" id="Checker" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker" /> + <keyword name="Checker" id="Checker" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker" /> <keyword name="Checker (Constructor)" id="Checker (Constructor)" ref="eric5.Plugins.CheckerPlugins.CodeStyleChecker.pep8.html#Checker.__init__" /> <keyword name="Checker (Constructor)" id="Checker (Constructor)" ref="eric5.Utilities.pyflakes.checker.html#Checker.__init__" /> <keyword name="Checker (Constructor)" id="Checker (Constructor)" ref="eric5.UtilitiesPython2.pep8.html#Checker.__init__" /> - <keyword name="Checker (Constructor)" id="Checker (Constructor)" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.__init__" /> + <keyword name="Checker (Constructor)" id="Checker (Constructor)" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.__init__" /> <keyword name="Checker.ASSIGN" id="Checker.ASSIGN" ref="eric5.Utilities.pyflakes.checker.html#Checker.ASSIGN" /> - <keyword name="Checker.ASSIGN" id="Checker.ASSIGN" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.ASSIGN" /> + <keyword name="Checker.ASSIGN" id="Checker.ASSIGN" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.ASSIGN" /> <keyword name="Checker.AUGASSIGN" id="Checker.AUGASSIGN" ref="eric5.Utilities.pyflakes.checker.html#Checker.AUGASSIGN" /> - <keyword name="Checker.AUGASSIGN" id="Checker.AUGASSIGN" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.AUGASSIGN" /> + <keyword name="Checker.AUGASSIGN" id="Checker.AUGASSIGN" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.AUGASSIGN" /> <keyword name="Checker.CLASSDEF" id="Checker.CLASSDEF" ref="eric5.Utilities.pyflakes.checker.html#Checker.CLASSDEF" /> - <keyword name="Checker.CLASSDEF" id="Checker.CLASSDEF" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.CLASSDEF" /> + <keyword name="Checker.CLASSDEF" id="Checker.CLASSDEF" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.CLASSDEF" /> <keyword name="Checker.DICTCOMP" id="Checker.DICTCOMP" ref="eric5.Utilities.pyflakes.checker.html#Checker.DICTCOMP" /> - <keyword name="Checker.DICTCOMP" id="Checker.DICTCOMP" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.DICTCOMP" /> + <keyword name="Checker.DICTCOMP" id="Checker.DICTCOMP" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.DICTCOMP" /> <keyword name="Checker.EXCEPTHANDLER" id="Checker.EXCEPTHANDLER" ref="eric5.Utilities.pyflakes.checker.html#Checker.EXCEPTHANDLER" /> - <keyword name="Checker.EXCEPTHANDLER" id="Checker.EXCEPTHANDLER" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.EXCEPTHANDLER" /> + <keyword name="Checker.EXCEPTHANDLER" id="Checker.EXCEPTHANDLER" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.EXCEPTHANDLER" /> <keyword name="Checker.FOR" id="Checker.FOR" ref="eric5.Utilities.pyflakes.checker.html#Checker.FOR" /> - <keyword name="Checker.FOR" id="Checker.FOR" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.FOR" /> + <keyword name="Checker.FOR" id="Checker.FOR" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.FOR" /> <keyword name="Checker.FUNCTIONDEF" id="Checker.FUNCTIONDEF" ref="eric5.Utilities.pyflakes.checker.html#Checker.FUNCTIONDEF" /> - <keyword name="Checker.FUNCTIONDEF" id="Checker.FUNCTIONDEF" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.FUNCTIONDEF" /> + <keyword name="Checker.FUNCTIONDEF" id="Checker.FUNCTIONDEF" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.FUNCTIONDEF" /> <keyword name="Checker.GENERATOREXP" id="Checker.GENERATOREXP" ref="eric5.Utilities.pyflakes.checker.html#Checker.GENERATOREXP" /> - <keyword name="Checker.GENERATOREXP" id="Checker.GENERATOREXP" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.GENERATOREXP" /> + <keyword name="Checker.GENERATOREXP" id="Checker.GENERATOREXP" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.GENERATOREXP" /> <keyword name="Checker.GLOBAL" id="Checker.GLOBAL" ref="eric5.Utilities.pyflakes.checker.html#Checker.GLOBAL" /> - <keyword name="Checker.GLOBAL" id="Checker.GLOBAL" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.GLOBAL" /> + <keyword name="Checker.GLOBAL" id="Checker.GLOBAL" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.GLOBAL" /> <keyword name="Checker.IMPORT" id="Checker.IMPORT" ref="eric5.Utilities.pyflakes.checker.html#Checker.IMPORT" /> - <keyword name="Checker.IMPORT" id="Checker.IMPORT" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.IMPORT" /> + <keyword name="Checker.IMPORT" id="Checker.IMPORT" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.IMPORT" /> <keyword name="Checker.IMPORTFROM" id="Checker.IMPORTFROM" ref="eric5.Utilities.pyflakes.checker.html#Checker.IMPORTFROM" /> - <keyword name="Checker.IMPORTFROM" id="Checker.IMPORTFROM" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.IMPORTFROM" /> + <keyword name="Checker.IMPORTFROM" id="Checker.IMPORTFROM" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.IMPORTFROM" /> <keyword name="Checker.LAMBDA" id="Checker.LAMBDA" ref="eric5.Utilities.pyflakes.checker.html#Checker.LAMBDA" /> - <keyword name="Checker.LAMBDA" id="Checker.LAMBDA" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.LAMBDA" /> + <keyword name="Checker.LAMBDA" id="Checker.LAMBDA" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.LAMBDA" /> <keyword name="Checker.LISTCOMP" id="Checker.LISTCOMP" ref="eric5.Utilities.pyflakes.checker.html#Checker.LISTCOMP" /> - <keyword name="Checker.LISTCOMP" id="Checker.LISTCOMP" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.LISTCOMP" /> + <keyword name="Checker.LISTCOMP" id="Checker.LISTCOMP" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.LISTCOMP" /> <keyword name="Checker.NAME" id="Checker.NAME" ref="eric5.Utilities.pyflakes.checker.html#Checker.NAME" /> - <keyword name="Checker.NAME" id="Checker.NAME" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.NAME" /> + <keyword name="Checker.NAME" id="Checker.NAME" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.NAME" /> <keyword name="Checker.TRY" id="Checker.TRY" ref="eric5.Utilities.pyflakes.checker.html#Checker.TRY" /> - <keyword name="Checker.TRY" id="Checker.TRY" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.TRY" /> + <keyword name="Checker.TRY" id="Checker.TRY" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.TRY" /> <keyword name="Checker.addArgs" id="Checker.addArgs" ref="eric5.Utilities.pyflakes.checker.html#Checker.addArgs" /> - <keyword name="Checker.addArgs" id="Checker.addArgs" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.addArgs" /> + <keyword name="Checker.addArgs" id="Checker.addArgs" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.addArgs" /> <keyword name="Checker.addBinding" id="Checker.addBinding" ref="eric5.Utilities.pyflakes.checker.html#Checker.addBinding" /> - <keyword name="Checker.addBinding" id="Checker.addBinding" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.addBinding" /> + <keyword name="Checker.addBinding" id="Checker.addBinding" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.addBinding" /> <keyword name="Checker.build_tokens_line" id="Checker.build_tokens_line" ref="eric5.Plugins.CheckerPlugins.CodeStyleChecker.pep8.html#Checker.build_tokens_line" /> <keyword name="Checker.build_tokens_line" id="Checker.build_tokens_line" ref="eric5.UtilitiesPython2.pep8.html#Checker.build_tokens_line" /> <keyword name="Checker.checkDeadScopes" id="Checker.checkDeadScopes" ref="eric5.Utilities.pyflakes.checker.html#Checker.checkDeadScopes" /> - <keyword name="Checker.checkDeadScopes" id="Checker.checkDeadScopes" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.checkDeadScopes" /> + <keyword name="Checker.checkDeadScopes" id="Checker.checkDeadScopes" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.checkDeadScopes" /> <keyword name="Checker.checkUnusedAssignments" id="Checker.checkUnusedAssignments" ref="eric5.Utilities.pyflakes.checker.html#Checker.checkUnusedAssignments" /> - <keyword name="Checker.checkUnusedAssignments" id="Checker.checkUnusedAssignments" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.checkUnusedAssignments" /> + <keyword name="Checker.checkUnusedAssignments" id="Checker.checkUnusedAssignments" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.checkUnusedAssignments" /> <keyword name="Checker.check_all" id="Checker.check_all" ref="eric5.Plugins.CheckerPlugins.CodeStyleChecker.pep8.html#Checker.check_all" /> <keyword name="Checker.check_all" id="Checker.check_all" ref="eric5.UtilitiesPython2.pep8.html#Checker.check_all" /> <keyword name="Checker.check_ast" id="Checker.check_ast" ref="eric5.Plugins.CheckerPlugins.CodeStyleChecker.pep8.html#Checker.check_ast" /> @@ -2027,67 +2027,67 @@ <keyword name="Checker.check_physical" id="Checker.check_physical" ref="eric5.Plugins.CheckerPlugins.CodeStyleChecker.pep8.html#Checker.check_physical" /> <keyword name="Checker.check_physical" id="Checker.check_physical" ref="eric5.UtilitiesPython2.pep8.html#Checker.check_physical" /> <keyword name="Checker.collectLoopVars" id="Checker.collectLoopVars" ref="eric5.Utilities.pyflakes.checker.html#Checker.collectLoopVars" /> - <keyword name="Checker.collectLoopVars" id="Checker.collectLoopVars" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.collectLoopVars" /> + <keyword name="Checker.collectLoopVars" id="Checker.collectLoopVars" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.collectLoopVars" /> <keyword name="Checker.deferAssignment" id="Checker.deferAssignment" ref="eric5.Utilities.pyflakes.checker.html#Checker.deferAssignment" /> - <keyword name="Checker.deferAssignment" id="Checker.deferAssignment" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.deferAssignment" /> + <keyword name="Checker.deferAssignment" id="Checker.deferAssignment" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.deferAssignment" /> <keyword name="Checker.deferFunction" id="Checker.deferFunction" ref="eric5.Utilities.pyflakes.checker.html#Checker.deferFunction" /> - <keyword name="Checker.deferFunction" id="Checker.deferFunction" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.deferFunction" /> + <keyword name="Checker.deferFunction" id="Checker.deferFunction" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.deferFunction" /> <keyword name="Checker.descendantOf" id="Checker.descendantOf" ref="eric5.Utilities.pyflakes.checker.html#Checker.descendantOf" /> - <keyword name="Checker.descendantOf" id="Checker.descendantOf" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.descendantOf" /> + <keyword name="Checker.descendantOf" id="Checker.descendantOf" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.descendantOf" /> <keyword name="Checker.differentForks" id="Checker.differentForks" ref="eric5.Utilities.pyflakes.checker.html#Checker.differentForks" /> - <keyword name="Checker.differentForks" id="Checker.differentForks" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.differentForks" /> + <keyword name="Checker.differentForks" id="Checker.differentForks" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.differentForks" /> <keyword name="Checker.generate_tokens" id="Checker.generate_tokens" ref="eric5.Plugins.CheckerPlugins.CodeStyleChecker.pep8.html#Checker.generate_tokens" /> <keyword name="Checker.generate_tokens" id="Checker.generate_tokens" ref="eric5.UtilitiesPython2.pep8.html#Checker.generate_tokens" /> <keyword name="Checker.getCommonAncestor" id="Checker.getCommonAncestor" ref="eric5.Utilities.pyflakes.checker.html#Checker.getCommonAncestor" /> - <keyword name="Checker.getCommonAncestor" id="Checker.getCommonAncestor" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.getCommonAncestor" /> + <keyword name="Checker.getCommonAncestor" id="Checker.getCommonAncestor" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.getCommonAncestor" /> <keyword name="Checker.getDocstring" id="Checker.getDocstring" ref="eric5.Utilities.pyflakes.checker.html#Checker.getDocstring" /> - <keyword name="Checker.getDocstring" id="Checker.getDocstring" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.getDocstring" /> + <keyword name="Checker.getDocstring" id="Checker.getDocstring" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.getDocstring" /> <keyword name="Checker.getNodeHandler" id="Checker.getNodeHandler" ref="eric5.Utilities.pyflakes.checker.html#Checker.getNodeHandler" /> - <keyword name="Checker.getNodeHandler" id="Checker.getNodeHandler" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.getNodeHandler" /> + <keyword name="Checker.getNodeHandler" id="Checker.getNodeHandler" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.getNodeHandler" /> <keyword name="Checker.handleChildren" id="Checker.handleChildren" ref="eric5.Utilities.pyflakes.checker.html#Checker.handleChildren" /> - <keyword name="Checker.handleChildren" id="Checker.handleChildren" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.handleChildren" /> + <keyword name="Checker.handleChildren" id="Checker.handleChildren" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.handleChildren" /> <keyword name="Checker.handleDoctests" id="Checker.handleDoctests" ref="eric5.Utilities.pyflakes.checker.html#Checker.handleDoctests" /> - <keyword name="Checker.handleDoctests" id="Checker.handleDoctests" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.handleDoctests" /> + <keyword name="Checker.handleDoctests" id="Checker.handleDoctests" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.handleDoctests" /> <keyword name="Checker.handleNode" id="Checker.handleNode" ref="eric5.Utilities.pyflakes.checker.html#Checker.handleNode" /> - <keyword name="Checker.handleNode" id="Checker.handleNode" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.handleNode" /> + <keyword name="Checker.handleNode" id="Checker.handleNode" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.handleNode" /> <keyword name="Checker.handleNodeDelete" id="Checker.handleNodeDelete" ref="eric5.Utilities.pyflakes.checker.html#Checker.handleNodeDelete" /> - <keyword name="Checker.handleNodeDelete" id="Checker.handleNodeDelete" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.handleNodeDelete" /> + <keyword name="Checker.handleNodeDelete" id="Checker.handleNodeDelete" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.handleNodeDelete" /> <keyword name="Checker.handleNodeLoad" id="Checker.handleNodeLoad" ref="eric5.Utilities.pyflakes.checker.html#Checker.handleNodeLoad" /> - <keyword name="Checker.handleNodeLoad" id="Checker.handleNodeLoad" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.handleNodeLoad" /> + <keyword name="Checker.handleNodeLoad" id="Checker.handleNodeLoad" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.handleNodeLoad" /> <keyword name="Checker.handleNodeStore" id="Checker.handleNodeStore" ref="eric5.Utilities.pyflakes.checker.html#Checker.handleNodeStore" /> - <keyword name="Checker.handleNodeStore" id="Checker.handleNodeStore" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.handleNodeStore" /> + <keyword name="Checker.handleNodeStore" id="Checker.handleNodeStore" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.handleNodeStore" /> <keyword name="Checker.hasParent" id="Checker.hasParent" ref="eric5.Utilities.pyflakes.checker.html#Checker.hasParent" /> - <keyword name="Checker.hasParent" id="Checker.hasParent" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.hasParent" /> + <keyword name="Checker.hasParent" id="Checker.hasParent" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.hasParent" /> <keyword name="Checker.ignore" id="Checker.ignore" ref="eric5.Utilities.pyflakes.checker.html#Checker.ignore" /> - <keyword name="Checker.ignore" id="Checker.ignore" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.ignore" /> + <keyword name="Checker.ignore" id="Checker.ignore" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.ignore" /> <keyword name="Checker.isDocstring" id="Checker.isDocstring" ref="eric5.Utilities.pyflakes.checker.html#Checker.isDocstring" /> - <keyword name="Checker.isDocstring" id="Checker.isDocstring" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.isDocstring" /> + <keyword name="Checker.isDocstring" id="Checker.isDocstring" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.isDocstring" /> <keyword name="Checker.onFork" id="Checker.onFork" ref="eric5.Utilities.pyflakes.checker.html#Checker.onFork" /> - <keyword name="Checker.onFork" id="Checker.onFork" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.onFork" /> + <keyword name="Checker.onFork" id="Checker.onFork" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.onFork" /> <keyword name="Checker.popScope" id="Checker.popScope" ref="eric5.Utilities.pyflakes.checker.html#Checker.popScope" /> - <keyword name="Checker.popScope" id="Checker.popScope" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.popScope" /> + <keyword name="Checker.popScope" id="Checker.popScope" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.popScope" /> <keyword name="Checker.pushClassScope" id="Checker.pushClassScope" ref="eric5.Utilities.pyflakes.checker.html#Checker.pushClassScope" /> - <keyword name="Checker.pushClassScope" id="Checker.pushClassScope" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.pushClassScope" /> + <keyword name="Checker.pushClassScope" id="Checker.pushClassScope" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.pushClassScope" /> <keyword name="Checker.pushFunctionScope" id="Checker.pushFunctionScope" ref="eric5.Utilities.pyflakes.checker.html#Checker.pushFunctionScope" /> - <keyword name="Checker.pushFunctionScope" id="Checker.pushFunctionScope" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.pushFunctionScope" /> + <keyword name="Checker.pushFunctionScope" id="Checker.pushFunctionScope" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.pushFunctionScope" /> <keyword name="Checker.pushScope" id="Checker.pushScope" ref="eric5.Utilities.pyflakes.checker.html#Checker.pushScope" /> - <keyword name="Checker.pushScope" id="Checker.pushScope" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.pushScope" /> + <keyword name="Checker.pushScope" id="Checker.pushScope" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.pushScope" /> <keyword name="Checker.readline" id="Checker.readline" ref="eric5.Plugins.CheckerPlugins.CodeStyleChecker.pep8.html#Checker.readline" /> <keyword name="Checker.readline" id="Checker.readline" ref="eric5.UtilitiesPython2.pep8.html#Checker.readline" /> <keyword name="Checker.readline_check_physical" id="Checker.readline_check_physical" ref="eric5.Plugins.CheckerPlugins.CodeStyleChecker.pep8.html#Checker.readline_check_physical" /> <keyword name="Checker.readline_check_physical" id="Checker.readline_check_physical" ref="eric5.UtilitiesPython2.pep8.html#Checker.readline_check_physical" /> <keyword name="Checker.report" id="Checker.report" ref="eric5.Utilities.pyflakes.checker.html#Checker.report" /> - <keyword name="Checker.report" id="Checker.report" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.report" /> + <keyword name="Checker.report" id="Checker.report" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.report" /> <keyword name="Checker.report_invalid_syntax" id="Checker.report_invalid_syntax" ref="eric5.Plugins.CheckerPlugins.CodeStyleChecker.pep8.html#Checker.report_invalid_syntax" /> <keyword name="Checker.report_invalid_syntax" id="Checker.report_invalid_syntax" ref="eric5.UtilitiesPython2.pep8.html#Checker.report_invalid_syntax" /> <keyword name="Checker.runDeferred" id="Checker.runDeferred" ref="eric5.Utilities.pyflakes.checker.html#Checker.runDeferred" /> - <keyword name="Checker.runDeferred" id="Checker.runDeferred" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.runDeferred" /> + <keyword name="Checker.runDeferred" id="Checker.runDeferred" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.runDeferred" /> <keyword name="Checker.runFunction" id="Checker.runFunction" ref="eric5.Utilities.pyflakes.checker.html#Checker.runFunction" /> - <keyword name="Checker.runFunction" id="Checker.runFunction" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.runFunction" /> + <keyword name="Checker.runFunction" id="Checker.runFunction" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.runFunction" /> <keyword name="Checker.run_check" id="Checker.run_check" ref="eric5.Plugins.CheckerPlugins.CodeStyleChecker.pep8.html#Checker.run_check" /> <keyword name="Checker.run_check" id="Checker.run_check" ref="eric5.UtilitiesPython2.pep8.html#Checker.run_check" /> <keyword name="Checker.scope" id="Checker.scope" ref="eric5.Utilities.pyflakes.checker.html#Checker.scope" /> - <keyword name="Checker.scope" id="Checker.scope" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Checker.scope" /> + <keyword name="Checker.scope" id="Checker.scope" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Checker.scope" /> <keyword name="CheckerPlugins (Package)" id="CheckerPlugins (Package)" ref="index-eric5.Plugins.CheckerPlugins.html" /> <keyword name="ChromeImporter" id="ChromeImporter" ref="eric5.Helpviewer.Bookmarks.BookmarksImporters.ChromeImporter.html#ChromeImporter" /> <keyword name="ChromeImporter (Constructor)" id="ChromeImporter (Constructor)" ref="eric5.Helpviewer.Bookmarks.BookmarksImporters.ChromeImporter.html#ChromeImporter.__init__" /> @@ -2115,7 +2115,7 @@ <keyword name="Class.setEndLine" id="Class.setEndLine" ref="eric5.Utilities.ModuleParser.html#Class.setEndLine" /> <keyword name="ClassBrowsers (Package)" id="ClassBrowsers (Package)" ref="index-eric5.Utilities.ClassBrowsers.html" /> <keyword name="ClassDefinition" id="ClassDefinition" ref="eric5.Utilities.pyflakes.checker.html#ClassDefinition" /> - <keyword name="ClassDefinition" id="ClassDefinition" ref="eric5.UtilitiesPython2.py2flakes.checker.html#ClassDefinition" /> + <keyword name="ClassDefinition" id="ClassDefinition" ref="eric5.UtilitiesPython2.pyflakes.checker.html#ClassDefinition" /> <keyword name="ClassItem" id="ClassItem" ref="eric5.Graphics.ClassItem.html#ClassItem" /> <keyword name="ClassItem (Constructor)" id="ClassItem (Constructor)" ref="eric5.Graphics.ClassItem.html#ClassItem.__init__" /> <keyword name="ClassItem (Module)" id="ClassItem (Module)" ref="eric5.Graphics.ClassItem.html" /> @@ -2133,7 +2133,7 @@ <keyword name="ClassModel.getAttributes" id="ClassModel.getAttributes" ref="eric5.Graphics.ClassItem.html#ClassModel.getAttributes" /> <keyword name="ClassModel.getMethods" id="ClassModel.getMethods" ref="eric5.Graphics.ClassItem.html#ClassModel.getMethods" /> <keyword name="ClassScope" id="ClassScope" ref="eric5.Utilities.pyflakes.checker.html#ClassScope" /> - <keyword name="ClassScope" id="ClassScope" ref="eric5.UtilitiesPython2.py2flakes.checker.html#ClassScope" /> + <keyword name="ClassScope" id="ClassScope" ref="eric5.UtilitiesPython2.pyflakes.checker.html#ClassScope" /> <keyword name="ClbrBase" id="ClbrBase" ref="eric5.Utilities.ClassBrowsers.ClbrBaseClasses.html#ClbrBase" /> <keyword name="ClbrBase (Constructor)" id="ClbrBase (Constructor)" ref="eric5.Utilities.ClassBrowsers.ClbrBaseClasses.html#ClbrBase.__init__" /> <keyword name="ClbrBase._addattribute" id="ClbrBase._addattribute" ref="eric5.Utilities.ClassBrowsers.ClbrBaseClasses.html#ClbrBase._addattribute" /> @@ -3405,7 +3405,7 @@ <keyword name="DebuggerRubyPage.save" id="DebuggerRubyPage.save" ref="eric5.Preferences.ConfigurationPages.DebuggerRubyPage.html#DebuggerRubyPage.save" /> <keyword name="DefaultSearchEngines (Package)" id="DefaultSearchEngines (Package)" ref="index-eric5.Helpviewer.OpenSearch.DefaultSearchEngines.html" /> <keyword name="Definition" id="Definition" ref="eric5.Utilities.pyflakes.checker.html#Definition" /> - <keyword name="Definition" id="Definition" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Definition" /> + <keyword name="Definition" id="Definition" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Definition" /> <keyword name="DeleteFilesConfirmationDialog" id="DeleteFilesConfirmationDialog" ref="eric5.UI.DeleteFilesConfirmationDialog.html#DeleteFilesConfirmationDialog" /> <keyword name="DeleteFilesConfirmationDialog (Constructor)" id="DeleteFilesConfirmationDialog (Constructor)" ref="eric5.UI.DeleteFilesConfirmationDialog.html#DeleteFilesConfirmationDialog.__init__" /> <keyword name="DeleteFilesConfirmationDialog (Module)" id="DeleteFilesConfirmationDialog (Module)" ref="eric5.UI.DeleteFilesConfirmationDialog.html" /> @@ -3557,9 +3557,9 @@ <keyword name="DocStyleContext.start" id="DocStyleContext.start" ref="eric5.Plugins.CheckerPlugins.CodeStyleChecker.DocStyleChecker.html#DocStyleContext.start" /> <keyword name="DocStyleContext.start" id="DocStyleContext.start" ref="eric5.UtilitiesPython2.DocStyleCheckerPy2.html#DocStyleContext.start" /> <keyword name="DoctestSyntaxError" id="DoctestSyntaxError" ref="eric5.Utilities.pyflakes.messages.html#DoctestSyntaxError" /> - <keyword name="DoctestSyntaxError" id="DoctestSyntaxError" ref="eric5.UtilitiesPython2.py2flakes.messages.html#DoctestSyntaxError" /> + <keyword name="DoctestSyntaxError" id="DoctestSyntaxError" ref="eric5.UtilitiesPython2.pyflakes.messages.html#DoctestSyntaxError" /> <keyword name="DoctestSyntaxError (Constructor)" id="DoctestSyntaxError (Constructor)" ref="eric5.Utilities.pyflakes.messages.html#DoctestSyntaxError.__init__" /> - <keyword name="DoctestSyntaxError (Constructor)" id="DoctestSyntaxError (Constructor)" ref="eric5.UtilitiesPython2.py2flakes.messages.html#DoctestSyntaxError.__init__" /> + <keyword name="DoctestSyntaxError (Constructor)" id="DoctestSyntaxError (Constructor)" ref="eric5.UtilitiesPython2.pyflakes.messages.html#DoctestSyntaxError.__init__" /> <keyword name="DocumentationPlugins (Package)" id="DocumentationPlugins (Package)" ref="index-eric5.Plugins.DocumentationPlugins.html" /> <keyword name="DocumentationTools (Package)" id="DocumentationTools (Package)" ref="index-eric5.DocumentationTools.html" /> <keyword name="Download (Package)" id="Download (Package)" ref="index-eric5.Helpviewer.Download.html" /> @@ -3647,9 +3647,9 @@ <keyword name="DownloadModel.rowCount" id="DownloadModel.rowCount" ref="eric5.Helpviewer.Download.DownloadModel.html#DownloadModel.rowCount" /> <keyword name="DownloadUtilities (Module)" id="DownloadUtilities (Module)" ref="eric5.Helpviewer.Download.DownloadUtilities.html" /> <keyword name="DuplicateArgument" id="DuplicateArgument" ref="eric5.Utilities.pyflakes.messages.html#DuplicateArgument" /> - <keyword name="DuplicateArgument" id="DuplicateArgument" ref="eric5.UtilitiesPython2.py2flakes.messages.html#DuplicateArgument" /> + <keyword name="DuplicateArgument" id="DuplicateArgument" ref="eric5.UtilitiesPython2.pyflakes.messages.html#DuplicateArgument" /> <keyword name="DuplicateArgument (Constructor)" id="DuplicateArgument (Constructor)" ref="eric5.Utilities.pyflakes.messages.html#DuplicateArgument.__init__" /> - <keyword name="DuplicateArgument (Constructor)" id="DuplicateArgument (Constructor)" ref="eric5.UtilitiesPython2.py2flakes.messages.html#DuplicateArgument.__init__" /> + <keyword name="DuplicateArgument (Constructor)" id="DuplicateArgument (Constructor)" ref="eric5.UtilitiesPython2.pyflakes.messages.html#DuplicateArgument.__init__" /> <keyword name="E5Action" id="E5Action" ref="eric5.E5Gui.E5Action.html#E5Action" /> <keyword name="E5Action (Constructor)" id="E5Action (Constructor)" ref="eric5.E5Gui.E5Action.html#E5Action.__init__" /> <keyword name="E5Action (Module)" id="E5Action (Module)" ref="eric5.E5Gui.E5Action.html" /> @@ -4852,7 +4852,7 @@ <keyword name="ExceptionsFilterDialog.on_exceptionEdit_textChanged" id="ExceptionsFilterDialog.on_exceptionEdit_textChanged" ref="eric5.Debugger.ExceptionsFilterDialog.html#ExceptionsFilterDialog.on_exceptionEdit_textChanged" /> <keyword name="ExceptionsFilterDialog.on_exceptionList_itemSelectionChanged" id="ExceptionsFilterDialog.on_exceptionList_itemSelectionChanged" ref="eric5.Debugger.ExceptionsFilterDialog.html#ExceptionsFilterDialog.on_exceptionList_itemSelectionChanged" /> <keyword name="ExportBinding" id="ExportBinding" ref="eric5.Utilities.pyflakes.checker.html#ExportBinding" /> - <keyword name="ExportBinding" id="ExportBinding" ref="eric5.UtilitiesPython2.py2flakes.checker.html#ExportBinding" /> + <keyword name="ExportBinding" id="ExportBinding" ref="eric5.UtilitiesPython2.pyflakes.checker.html#ExportBinding" /> <keyword name="ExporterBase" id="ExporterBase" ref="eric5.QScintilla.Exporters.ExporterBase.html#ExporterBase" /> <keyword name="ExporterBase (Constructor)" id="ExporterBase (Constructor)" ref="eric5.QScintilla.Exporters.ExporterBase.html#ExporterBase.__init__" /> <keyword name="ExporterBase (Module)" id="ExporterBase (Module)" ref="eric5.QScintilla.Exporters.ExporterBase.html" /> @@ -5133,11 +5133,11 @@ <keyword name="Function.addDescription" id="Function.addDescription" ref="eric5.Utilities.ModuleParser.html#Function.addDescription" /> <keyword name="Function.setEndLine" id="Function.setEndLine" ref="eric5.Utilities.ModuleParser.html#Function.setEndLine" /> <keyword name="FunctionDefinition" id="FunctionDefinition" ref="eric5.Utilities.pyflakes.checker.html#FunctionDefinition" /> - <keyword name="FunctionDefinition" id="FunctionDefinition" ref="eric5.UtilitiesPython2.py2flakes.checker.html#FunctionDefinition" /> + <keyword name="FunctionDefinition" id="FunctionDefinition" ref="eric5.UtilitiesPython2.pyflakes.checker.html#FunctionDefinition" /> <keyword name="FunctionScope" id="FunctionScope" ref="eric5.Utilities.pyflakes.checker.html#FunctionScope" /> - <keyword name="FunctionScope" id="FunctionScope" ref="eric5.UtilitiesPython2.py2flakes.checker.html#FunctionScope" /> + <keyword name="FunctionScope" id="FunctionScope" ref="eric5.UtilitiesPython2.pyflakes.checker.html#FunctionScope" /> <keyword name="GeneratorScope" id="GeneratorScope" ref="eric5.Utilities.pyflakes.checker.html#GeneratorScope" /> - <keyword name="GeneratorScope" id="GeneratorScope" ref="eric5.UtilitiesPython2.py2flakes.checker.html#GeneratorScope" /> + <keyword name="GeneratorScope" id="GeneratorScope" ref="eric5.UtilitiesPython2.pyflakes.checker.html#GeneratorScope" /> <keyword name="Globals (Package)" id="Globals (Package)" ref="index-eric5.Globals.html" /> <keyword name="GotoDialog" id="GotoDialog" ref="eric5.QScintilla.GotoDialog.html#GotoDialog" /> <keyword name="GotoDialog (Constructor)" id="GotoDialog (Constructor)" ref="eric5.QScintilla.GotoDialog.html#GotoDialog.__init__" /> @@ -6865,15 +6865,15 @@ <keyword name="IconsPreviewDialog (Constructor)" id="IconsPreviewDialog (Constructor)" ref="eric5.Preferences.ConfigurationPages.IconsPreviewDialog.html#IconsPreviewDialog.__init__" /> <keyword name="IconsPreviewDialog (Module)" id="IconsPreviewDialog (Module)" ref="eric5.Preferences.ConfigurationPages.IconsPreviewDialog.html" /> <keyword name="ImportShadowedByLoopVar" id="ImportShadowedByLoopVar" ref="eric5.Utilities.pyflakes.messages.html#ImportShadowedByLoopVar" /> - <keyword name="ImportShadowedByLoopVar" id="ImportShadowedByLoopVar" ref="eric5.UtilitiesPython2.py2flakes.messages.html#ImportShadowedByLoopVar" /> + <keyword name="ImportShadowedByLoopVar" id="ImportShadowedByLoopVar" ref="eric5.UtilitiesPython2.pyflakes.messages.html#ImportShadowedByLoopVar" /> <keyword name="ImportShadowedByLoopVar (Constructor)" id="ImportShadowedByLoopVar (Constructor)" ref="eric5.Utilities.pyflakes.messages.html#ImportShadowedByLoopVar.__init__" /> - <keyword name="ImportShadowedByLoopVar (Constructor)" id="ImportShadowedByLoopVar (Constructor)" ref="eric5.UtilitiesPython2.py2flakes.messages.html#ImportShadowedByLoopVar.__init__" /> + <keyword name="ImportShadowedByLoopVar (Constructor)" id="ImportShadowedByLoopVar (Constructor)" ref="eric5.UtilitiesPython2.pyflakes.messages.html#ImportShadowedByLoopVar.__init__" /> <keyword name="ImportStarUsed" id="ImportStarUsed" ref="eric5.Utilities.pyflakes.messages.html#ImportStarUsed" /> - <keyword name="ImportStarUsed" id="ImportStarUsed" ref="eric5.UtilitiesPython2.py2flakes.messages.html#ImportStarUsed" /> + <keyword name="ImportStarUsed" id="ImportStarUsed" ref="eric5.UtilitiesPython2.pyflakes.messages.html#ImportStarUsed" /> <keyword name="ImportStarUsed (Constructor)" id="ImportStarUsed (Constructor)" ref="eric5.Utilities.pyflakes.messages.html#ImportStarUsed.__init__" /> - <keyword name="ImportStarUsed (Constructor)" id="ImportStarUsed (Constructor)" ref="eric5.UtilitiesPython2.py2flakes.messages.html#ImportStarUsed.__init__" /> + <keyword name="ImportStarUsed (Constructor)" id="ImportStarUsed (Constructor)" ref="eric5.UtilitiesPython2.pyflakes.messages.html#ImportStarUsed.__init__" /> <keyword name="Importation" id="Importation" ref="eric5.Utilities.pyflakes.checker.html#Importation" /> - <keyword name="Importation" id="Importation" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Importation" /> + <keyword name="Importation" id="Importation" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Importation" /> <keyword name="ImportsDiagramBuilder" id="ImportsDiagramBuilder" ref="eric5.Graphics.ImportsDiagramBuilder.html#ImportsDiagramBuilder" /> <keyword name="ImportsDiagramBuilder (Constructor)" id="ImportsDiagramBuilder (Constructor)" ref="eric5.Graphics.ImportsDiagramBuilder.html#ImportsDiagramBuilder.__init__" /> <keyword name="ImportsDiagramBuilder (Module)" id="ImportsDiagramBuilder (Module)" ref="eric5.Graphics.ImportsDiagramBuilder.html" /> @@ -7257,9 +7257,9 @@ <keyword name="JavaScriptExternalObject.AddSearchProvider" id="JavaScriptExternalObject.AddSearchProvider" ref="eric5.Helpviewer.HelpBrowserWV.html#JavaScriptExternalObject.AddSearchProvider" /> <keyword name="JavaScriptResources (Module)" id="JavaScriptResources (Module)" ref="eric5.Helpviewer.JavaScriptResources.html" /> <keyword name="LateFutureImport" id="LateFutureImport" ref="eric5.Utilities.pyflakes.messages.html#LateFutureImport" /> - <keyword name="LateFutureImport" id="LateFutureImport" ref="eric5.UtilitiesPython2.py2flakes.messages.html#LateFutureImport" /> + <keyword name="LateFutureImport" id="LateFutureImport" ref="eric5.UtilitiesPython2.pyflakes.messages.html#LateFutureImport" /> <keyword name="LateFutureImport (Constructor)" id="LateFutureImport (Constructor)" ref="eric5.Utilities.pyflakes.messages.html#LateFutureImport.__init__" /> - <keyword name="LateFutureImport (Constructor)" id="LateFutureImport (Constructor)" ref="eric5.UtilitiesPython2.py2flakes.messages.html#LateFutureImport.__init__" /> + <keyword name="LateFutureImport (Constructor)" id="LateFutureImport (Constructor)" ref="eric5.UtilitiesPython2.pyflakes.messages.html#LateFutureImport.__init__" /> <keyword name="Lexer" id="Lexer" ref="eric5.QScintilla.Lexers.Lexer.html#Lexer" /> <keyword name="Lexer (Constructor)" id="Lexer (Constructor)" ref="eric5.QScintilla.Lexers.Lexer.html#Lexer.__init__" /> <keyword name="Lexer (Module)" id="Lexer (Module)" ref="eric5.QScintilla.Lexers.Lexer.html" /> @@ -7630,13 +7630,13 @@ <keyword name="MercurialPage.on_configButton_clicked" id="MercurialPage.on_configButton_clicked" ref="eric5.Plugins.VcsPlugins.vcsMercurial.ConfigurationPage.MercurialPage.html#MercurialPage.on_configButton_clicked" /> <keyword name="MercurialPage.save" id="MercurialPage.save" ref="eric5.Plugins.VcsPlugins.vcsMercurial.ConfigurationPage.MercurialPage.html#MercurialPage.save" /> <keyword name="Message" id="Message" ref="eric5.Utilities.pyflakes.messages.html#Message" /> - <keyword name="Message" id="Message" ref="eric5.UtilitiesPython2.py2flakes.messages.html#Message" /> + <keyword name="Message" id="Message" ref="eric5.UtilitiesPython2.pyflakes.messages.html#Message" /> <keyword name="Message (Constructor)" id="Message (Constructor)" ref="eric5.Utilities.pyflakes.messages.html#Message.__init__" /> - <keyword name="Message (Constructor)" id="Message (Constructor)" ref="eric5.UtilitiesPython2.py2flakes.messages.html#Message.__init__" /> + <keyword name="Message (Constructor)" id="Message (Constructor)" ref="eric5.UtilitiesPython2.pyflakes.messages.html#Message.__init__" /> <keyword name="Message.__str__" id="Message.__str__" ref="eric5.Utilities.pyflakes.messages.html#Message.__str__" /> - <keyword name="Message.__str__" id="Message.__str__" ref="eric5.UtilitiesPython2.py2flakes.messages.html#Message.__str__" /> + <keyword name="Message.__str__" id="Message.__str__" ref="eric5.UtilitiesPython2.pyflakes.messages.html#Message.__str__" /> <keyword name="Message.getMessageData" id="Message.getMessageData" ref="eric5.Utilities.pyflakes.messages.html#Message.getMessageData" /> - <keyword name="Message.getMessageData" id="Message.getMessageData" ref="eric5.UtilitiesPython2.py2flakes.messages.html#Message.getMessageData" /> + <keyword name="Message.getMessageData" id="Message.getMessageData" ref="eric5.UtilitiesPython2.pyflakes.messages.html#Message.getMessageData" /> <keyword name="MessageBoxWizard" id="MessageBoxWizard" ref="eric5.Plugins.PluginWizardQMessageBox.html#MessageBoxWizard" /> <keyword name="MessageBoxWizard (Constructor)" id="MessageBoxWizard (Constructor)" ref="eric5.Plugins.PluginWizardQMessageBox.html#MessageBoxWizard.__init__" /> <keyword name="MessageBoxWizard (Package)" id="MessageBoxWizard (Package)" ref="index-eric5.Plugins.WizardPlugins.MessageBoxWizard.html" /> @@ -7802,7 +7802,7 @@ <keyword name="ModuleModel.getClasses" id="ModuleModel.getClasses" ref="eric5.Graphics.ModuleItem.html#ModuleModel.getClasses" /> <keyword name="ModuleParser (Module)" id="ModuleParser (Module)" ref="eric5.Utilities.ModuleParser.html" /> <keyword name="ModuleScope" id="ModuleScope" ref="eric5.Utilities.pyflakes.checker.html#ModuleScope" /> - <keyword name="ModuleScope" id="ModuleScope" ref="eric5.UtilitiesPython2.py2flakes.checker.html#ModuleScope" /> + <keyword name="ModuleScope" id="ModuleScope" ref="eric5.UtilitiesPython2.pyflakes.checker.html#ModuleScope" /> <keyword name="MultiProject" id="MultiProject" ref="eric5.MultiProject.MultiProject.html#MultiProject" /> <keyword name="MultiProject (Constructor)" id="MultiProject (Constructor)" ref="eric5.MultiProject.MultiProject.html#MultiProject.__init__" /> <keyword name="MultiProject (Module)" id="MultiProject (Module)" ref="eric5.MultiProject.MultiProject.html" /> @@ -9660,17 +9660,17 @@ <keyword name="RebaseProjectHelper.menuTitle" id="RebaseProjectHelper.menuTitle" ref="eric5.Plugins.VcsPlugins.vcsMercurial.RebaseExtension.ProjectHelper.html#RebaseProjectHelper.menuTitle" /> <keyword name="RecursionError" id="RecursionError" ref="eric5.Graphics.GraphicsUtilities.html#RecursionError" /> <keyword name="Redefined" id="Redefined" ref="eric5.Utilities.pyflakes.messages.html#Redefined" /> - <keyword name="Redefined" id="Redefined" ref="eric5.UtilitiesPython2.py2flakes.messages.html#Redefined" /> + <keyword name="Redefined" id="Redefined" ref="eric5.UtilitiesPython2.pyflakes.messages.html#Redefined" /> <keyword name="Redefined (Constructor)" id="Redefined (Constructor)" ref="eric5.Utilities.pyflakes.messages.html#Redefined.__init__" /> - <keyword name="Redefined (Constructor)" id="Redefined (Constructor)" ref="eric5.UtilitiesPython2.py2flakes.messages.html#Redefined.__init__" /> + <keyword name="Redefined (Constructor)" id="Redefined (Constructor)" ref="eric5.UtilitiesPython2.pyflakes.messages.html#Redefined.__init__" /> <keyword name="RedefinedInListComp" id="RedefinedInListComp" ref="eric5.Utilities.pyflakes.messages.html#RedefinedInListComp" /> - <keyword name="RedefinedInListComp" id="RedefinedInListComp" ref="eric5.UtilitiesPython2.py2flakes.messages.html#RedefinedInListComp" /> + <keyword name="RedefinedInListComp" id="RedefinedInListComp" ref="eric5.UtilitiesPython2.pyflakes.messages.html#RedefinedInListComp" /> <keyword name="RedefinedInListComp (Constructor)" id="RedefinedInListComp (Constructor)" ref="eric5.Utilities.pyflakes.messages.html#RedefinedInListComp.__init__" /> - <keyword name="RedefinedInListComp (Constructor)" id="RedefinedInListComp (Constructor)" ref="eric5.UtilitiesPython2.py2flakes.messages.html#RedefinedInListComp.__init__" /> + <keyword name="RedefinedInListComp (Constructor)" id="RedefinedInListComp (Constructor)" ref="eric5.UtilitiesPython2.pyflakes.messages.html#RedefinedInListComp.__init__" /> <keyword name="RedefinedWhileUnused" id="RedefinedWhileUnused" ref="eric5.Utilities.pyflakes.messages.html#RedefinedWhileUnused" /> - <keyword name="RedefinedWhileUnused" id="RedefinedWhileUnused" ref="eric5.UtilitiesPython2.py2flakes.messages.html#RedefinedWhileUnused" /> + <keyword name="RedefinedWhileUnused" id="RedefinedWhileUnused" ref="eric5.UtilitiesPython2.pyflakes.messages.html#RedefinedWhileUnused" /> <keyword name="RedefinedWhileUnused (Constructor)" id="RedefinedWhileUnused (Constructor)" ref="eric5.Utilities.pyflakes.messages.html#RedefinedWhileUnused.__init__" /> - <keyword name="RedefinedWhileUnused (Constructor)" id="RedefinedWhileUnused (Constructor)" ref="eric5.UtilitiesPython2.py2flakes.messages.html#RedefinedWhileUnused.__init__" /> + <keyword name="RedefinedWhileUnused (Constructor)" id="RedefinedWhileUnused (Constructor)" ref="eric5.UtilitiesPython2.pyflakes.messages.html#RedefinedWhileUnused.__init__" /> <keyword name="Redirector" id="Redirector" ref="eric5.UI.UserInterface.html#Redirector" /> <keyword name="Redirector (Constructor)" id="Redirector (Constructor)" ref="eric5.UI.UserInterface.html#Redirector.__init__" /> <keyword name="Redirector.__bufferedWrite" id="Redirector.__bufferedWrite" ref="eric5.UI.UserInterface.html#Redirector.__bufferedWrite" /> @@ -9705,7 +9705,7 @@ <keyword name="SchemeAccessHandler (Module)" id="SchemeAccessHandler (Module)" ref="eric5.Helpviewer.Network.SchemeAccessHandler.html" /> <keyword name="SchemeAccessHandler.createRequest" id="SchemeAccessHandler.createRequest" ref="eric5.Helpviewer.Network.SchemeAccessHandler.html#SchemeAccessHandler.createRequest" /> <keyword name="Scope" id="Scope" ref="eric5.Utilities.pyflakes.checker.html#Scope" /> - <keyword name="Scope" id="Scope" ref="eric5.UtilitiesPython2.py2flakes.checker.html#Scope" /> + <keyword name="Scope" id="Scope" ref="eric5.UtilitiesPython2.pyflakes.checker.html#Scope" /> <keyword name="SearchReplaceSlidingWidget" id="SearchReplaceSlidingWidget" ref="eric5.QScintilla.SearchReplaceWidget.html#SearchReplaceSlidingWidget" /> <keyword name="SearchReplaceSlidingWidget (Constructor)" id="SearchReplaceSlidingWidget (Constructor)" ref="eric5.QScintilla.SearchReplaceWidget.html#SearchReplaceSlidingWidget.__init__" /> <keyword name="SearchReplaceSlidingWidget.__enableScrollerButtons" id="SearchReplaceSlidingWidget.__enableScrollerButtons" ref="eric5.QScintilla.SearchReplaceWidget.html#SearchReplaceSlidingWidget.__enableScrollerButtons" /> @@ -11791,17 +11791,17 @@ <keyword name="Uid" id="Uid" ref="eric5.Utilities.binplistlib.html#Uid" /> <keyword name="Uid.__repr__" id="Uid.__repr__" ref="eric5.Utilities.binplistlib.html#Uid.__repr__" /> <keyword name="UndefinedExport" id="UndefinedExport" ref="eric5.Utilities.pyflakes.messages.html#UndefinedExport" /> - <keyword name="UndefinedExport" id="UndefinedExport" ref="eric5.UtilitiesPython2.py2flakes.messages.html#UndefinedExport" /> + <keyword name="UndefinedExport" id="UndefinedExport" ref="eric5.UtilitiesPython2.pyflakes.messages.html#UndefinedExport" /> <keyword name="UndefinedExport (Constructor)" id="UndefinedExport (Constructor)" ref="eric5.Utilities.pyflakes.messages.html#UndefinedExport.__init__" /> - <keyword name="UndefinedExport (Constructor)" id="UndefinedExport (Constructor)" ref="eric5.UtilitiesPython2.py2flakes.messages.html#UndefinedExport.__init__" /> + <keyword name="UndefinedExport (Constructor)" id="UndefinedExport (Constructor)" ref="eric5.UtilitiesPython2.pyflakes.messages.html#UndefinedExport.__init__" /> <keyword name="UndefinedLocal" id="UndefinedLocal" ref="eric5.Utilities.pyflakes.messages.html#UndefinedLocal" /> - <keyword name="UndefinedLocal" id="UndefinedLocal" ref="eric5.UtilitiesPython2.py2flakes.messages.html#UndefinedLocal" /> + <keyword name="UndefinedLocal" id="UndefinedLocal" ref="eric5.UtilitiesPython2.pyflakes.messages.html#UndefinedLocal" /> <keyword name="UndefinedLocal (Constructor)" id="UndefinedLocal (Constructor)" ref="eric5.Utilities.pyflakes.messages.html#UndefinedLocal.__init__" /> - <keyword name="UndefinedLocal (Constructor)" id="UndefinedLocal (Constructor)" ref="eric5.UtilitiesPython2.py2flakes.messages.html#UndefinedLocal.__init__" /> + <keyword name="UndefinedLocal (Constructor)" id="UndefinedLocal (Constructor)" ref="eric5.UtilitiesPython2.pyflakes.messages.html#UndefinedLocal.__init__" /> <keyword name="UndefinedName" id="UndefinedName" ref="eric5.Utilities.pyflakes.messages.html#UndefinedName" /> - <keyword name="UndefinedName" id="UndefinedName" ref="eric5.UtilitiesPython2.py2flakes.messages.html#UndefinedName" /> + <keyword name="UndefinedName" id="UndefinedName" ref="eric5.UtilitiesPython2.pyflakes.messages.html#UndefinedName" /> <keyword name="UndefinedName (Constructor)" id="UndefinedName (Constructor)" ref="eric5.Utilities.pyflakes.messages.html#UndefinedName.__init__" /> - <keyword name="UndefinedName (Constructor)" id="UndefinedName (Constructor)" ref="eric5.UtilitiesPython2.py2flakes.messages.html#UndefinedName.__init__" /> + <keyword name="UndefinedName (Constructor)" id="UndefinedName (Constructor)" ref="eric5.UtilitiesPython2.pyflakes.messages.html#UndefinedName.__init__" /> <keyword name="UnittestDialog" id="UnittestDialog" ref="eric5.PyUnit.UnittestDialog.html#UnittestDialog" /> <keyword name="UnittestDialog (Constructor)" id="UnittestDialog (Constructor)" ref="eric5.PyUnit.UnittestDialog.html#UnittestDialog.__init__" /> <keyword name="UnittestDialog (Module)" id="UnittestDialog (Module)" ref="eric5.PyUnit.UnittestDialog.html" /> @@ -11832,13 +11832,13 @@ <keyword name="UnittestWindow (Constructor)" id="UnittestWindow (Constructor)" ref="eric5.PyUnit.UnittestDialog.html#UnittestWindow.__init__" /> <keyword name="UnittestWindow.eventFilter" id="UnittestWindow.eventFilter" ref="eric5.PyUnit.UnittestDialog.html#UnittestWindow.eventFilter" /> <keyword name="UnusedImport" id="UnusedImport" ref="eric5.Utilities.pyflakes.messages.html#UnusedImport" /> - <keyword name="UnusedImport" id="UnusedImport" ref="eric5.UtilitiesPython2.py2flakes.messages.html#UnusedImport" /> + <keyword name="UnusedImport" id="UnusedImport" ref="eric5.UtilitiesPython2.pyflakes.messages.html#UnusedImport" /> <keyword name="UnusedImport (Constructor)" id="UnusedImport (Constructor)" ref="eric5.Utilities.pyflakes.messages.html#UnusedImport.__init__" /> - <keyword name="UnusedImport (Constructor)" id="UnusedImport (Constructor)" ref="eric5.UtilitiesPython2.py2flakes.messages.html#UnusedImport.__init__" /> + <keyword name="UnusedImport (Constructor)" id="UnusedImport (Constructor)" ref="eric5.UtilitiesPython2.pyflakes.messages.html#UnusedImport.__init__" /> <keyword name="UnusedVariable" id="UnusedVariable" ref="eric5.Utilities.pyflakes.messages.html#UnusedVariable" /> - <keyword name="UnusedVariable" id="UnusedVariable" ref="eric5.UtilitiesPython2.py2flakes.messages.html#UnusedVariable" /> + <keyword name="UnusedVariable" id="UnusedVariable" ref="eric5.UtilitiesPython2.pyflakes.messages.html#UnusedVariable" /> <keyword name="UnusedVariable (Constructor)" id="UnusedVariable (Constructor)" ref="eric5.Utilities.pyflakes.messages.html#UnusedVariable.__init__" /> - <keyword name="UnusedVariable (Constructor)" id="UnusedVariable (Constructor)" ref="eric5.UtilitiesPython2.py2flakes.messages.html#UnusedVariable.__init__" /> + <keyword name="UnusedVariable (Constructor)" id="UnusedVariable (Constructor)" ref="eric5.UtilitiesPython2.pyflakes.messages.html#UnusedVariable.__init__" /> <keyword name="UrlBar" id="UrlBar" ref="eric5.Helpviewer.UrlBar.UrlBar.html#UrlBar" /> <keyword name="UrlBar (Constructor)" id="UrlBar (Constructor)" ref="eric5.Helpviewer.UrlBar.UrlBar.html#UrlBar.__init__" /> <keyword name="UrlBar (Module)" id="UrlBar (Module)" ref="eric5.Helpviewer.UrlBar.UrlBar.html" /> @@ -12804,24 +12804,24 @@ <keyword name="__getPygmentsLexer" id="__getPygmentsLexer" ref="eric5.QScintilla.Lexers.__init__.html#__getPygmentsLexer" /> <keyword name="__initChannelModesDict" id="__initChannelModesDict" ref="eric5.Network.IRC.IrcUtilities.html#__initChannelModesDict" /> <keyword name="__init__" id="__init__" ref="eric5.Utilities.pyflakes.checker.html#__init__" /> - <keyword name="__init__" id="__init__" ref="eric5.UtilitiesPython2.py2flakes.checker.html#__init__" /> + <keyword name="__init__" id="__init__" ref="eric5.UtilitiesPython2.pyflakes.checker.html#__init__" /> <keyword name="__init___1" id="__init___1" ref="eric5.Utilities.pyflakes.checker.html#__init___1" /> - <keyword name="__init___1" id="__init___1" ref="eric5.UtilitiesPython2.py2flakes.checker.html#__init___1" /> + <keyword name="__init___1" id="__init___1" ref="eric5.UtilitiesPython2.pyflakes.checker.html#__init___1" /> <keyword name="__init___2" id="__init___2" ref="eric5.Utilities.pyflakes.checker.html#__init___2" /> - <keyword name="__init___2" id="__init___2" ref="eric5.UtilitiesPython2.py2flakes.checker.html#__init___2" /> + <keyword name="__init___2" id="__init___2" ref="eric5.UtilitiesPython2.pyflakes.checker.html#__init___2" /> <keyword name="__messageBox" id="__messageBox" ref="eric5.E5Gui.E5MessageBox.html#__messageBox" /> <keyword name="__readShortcut" id="__readShortcut" ref="eric5.Preferences.Shortcuts.html#__readShortcut" /> <keyword name="__render" id="__render" ref="eric5.Helpviewer.HelpSnap.html#__render" /> <keyword name="__reorderFilter" id="__reorderFilter" ref="eric5.E5Gui.E5FileDialog.html#__reorderFilter" /> <keyword name="__repr__" id="__repr__" ref="eric5.Utilities.pyflakes.checker.html#__repr__" /> - <keyword name="__repr__" id="__repr__" ref="eric5.UtilitiesPython2.py2flakes.checker.html#__repr__" /> + <keyword name="__repr__" id="__repr__" ref="eric5.UtilitiesPython2.pyflakes.checker.html#__repr__" /> <keyword name="__repr___1" id="__repr___1" ref="eric5.Utilities.pyflakes.checker.html#__repr___1" /> - <keyword name="__repr___1" id="__repr___1" ref="eric5.UtilitiesPython2.py2flakes.checker.html#__repr___1" /> + <keyword name="__repr___1" id="__repr___1" ref="eric5.UtilitiesPython2.pyflakes.checker.html#__repr___1" /> <keyword name="__saveShortcut" id="__saveShortcut" ref="eric5.Preferences.Shortcuts.html#__saveShortcut" /> <keyword name="__setAction" id="__setAction" ref="eric5.Preferences.Shortcuts.html#__setAction" /> <keyword name="__showwarning" id="__showwarning" ref="eric5.Utilities.__init__.html#__showwarning" /> <keyword name="__str__" id="__str__" ref="eric5.Utilities.pyflakes.checker.html#__str__" /> - <keyword name="__str__" id="__str__" ref="eric5.UtilitiesPython2.py2flakes.checker.html#__str__" /> + <keyword name="__str__" id="__str__" ref="eric5.UtilitiesPython2.pyflakes.checker.html#__str__" /> <keyword name="_add_check" id="_add_check" ref="eric5.Plugins.CheckerPlugins.CodeStyleChecker.pep8.html#_add_check" /> <keyword name="_add_check" id="_add_check" ref="eric5.UtilitiesPython2.pep8.html#_add_check" /> <keyword name="_buildChildrenLists" id="_buildChildrenLists" ref="eric5.Graphics.GraphicsUtilities.html#_buildChildrenLists" /> @@ -12849,7 +12849,7 @@ <keyword name="checkBlacklistedVersions" id="checkBlacklistedVersions" ref="eric5.Globals.__init__.html#checkBlacklistedVersions" /> <keyword name="checkPyside" id="checkPyside" ref="eric5.Utilities.__init__.html#checkPyside" /> <keyword name="checker (Module)" id="checker (Module)" ref="eric5.Utilities.pyflakes.checker.html" /> - <keyword name="checker (Module)" id="checker (Module)" ref="eric5.UtilitiesPython2.py2flakes.checker.html" /> + <keyword name="checker (Module)" id="checker (Module)" ref="eric5.UtilitiesPython2.pyflakes.checker.html" /> <keyword name="cleanUp" id="cleanUp" ref="eric5.install.html#cleanUp" /> <keyword name="close" id="close" ref="eric5.DebugClients.Ruby.AsyncFile.html#close" /> <keyword name="compactPath" id="compactPath" ref="eric5.Utilities.__init__.html#compactPath" /> @@ -13110,11 +13110,11 @@ <keyword name="getMessage" id="getMessage" ref="eric5.Plugins.CheckerPlugins.CodeStyleChecker.pep8.html#getMessage" /> <keyword name="getMultiProject" id="getMultiProject" ref="eric5.Preferences.__init__.html#getMultiProject" /> <keyword name="getNodeName" id="getNodeName" ref="eric5.Utilities.pyflakes.checker.html#getNodeName" /> - <keyword name="getNodeName" id="getNodeName" ref="eric5.UtilitiesPython2.py2flakes.checker.html#getNodeName" /> + <keyword name="getNodeName" id="getNodeName" ref="eric5.UtilitiesPython2.pyflakes.checker.html#getNodeName" /> <keyword name="getNodeType" id="getNodeType" ref="eric5.Utilities.pyflakes.checker.html#getNodeType" /> - <keyword name="getNodeType" id="getNodeType" ref="eric5.UtilitiesPython2.py2flakes.checker.html#getNodeType" /> + <keyword name="getNodeType" id="getNodeType" ref="eric5.UtilitiesPython2.pyflakes.checker.html#getNodeType" /> <keyword name="getNodeType_1" id="getNodeType_1" ref="eric5.Utilities.pyflakes.checker.html#getNodeType_1" /> - <keyword name="getNodeType_1" id="getNodeType_1" ref="eric5.UtilitiesPython2.py2flakes.checker.html#getNodeType_1" /> + <keyword name="getNodeType_1" id="getNodeType_1" ref="eric5.UtilitiesPython2.pyflakes.checker.html#getNodeType_1" /> <keyword name="getOpenFileFiltersList" id="getOpenFileFiltersList" ref="eric5.QScintilla.Lexers.__init__.html#getOpenFileFiltersList" /> <keyword name="getOpenFileName" id="getOpenFileName" ref="eric5.E5Gui.E5FileDialog.html#getOpenFileName" /> <keyword name="getOpenFileNameAndFilter" id="getOpenFileNameAndFilter" ref="eric5.E5Gui.E5FileDialog.html#getOpenFileNameAndFilter" /> @@ -13231,7 +13231,7 @@ <keyword name="isatty" id="isatty" ref="eric5.DebugClients.Ruby.AsyncFile.html#isatty" /> <keyword name="isinpath" id="isinpath" ref="eric5.Utilities.__init__.html#isinpath" /> <keyword name="iter_child_nodes" id="iter_child_nodes" ref="eric5.Utilities.pyflakes.checker.html#iter_child_nodes" /> - <keyword name="iter_child_nodes" id="iter_child_nodes" ref="eric5.UtilitiesPython2.py2flakes.checker.html#iter_child_nodes" /> + <keyword name="iter_child_nodes" id="iter_child_nodes" ref="eric5.UtilitiesPython2.pyflakes.checker.html#iter_child_nodes" /> <keyword name="joinext" id="joinext" ref="eric5.Utilities.__init__.html#joinext" /> <keyword name="jsclbr (Module)" id="jsclbr (Module)" ref="eric5.Utilities.ClassBrowsers.jsclbr.html" /> <keyword name="linesep" id="linesep" ref="eric5.Utilities.__init__.html#linesep" /> @@ -13272,7 +13272,7 @@ <keyword name="messageHandler" id="messageHandler" ref="eric5.E5Gui.E5ErrorMessage.html#messageHandler" /> <keyword name="messageHandlerInstalled" id="messageHandlerInstalled" ref="eric5.E5Gui.E5ErrorMessage.html#messageHandlerInstalled" /> <keyword name="messages (Module)" id="messages (Module)" ref="eric5.Utilities.pyflakes.messages.html" /> - <keyword name="messages (Module)" id="messages (Module)" ref="eric5.UtilitiesPython2.py2flakes.messages.html" /> + <keyword name="messages (Module)" id="messages (Module)" ref="eric5.UtilitiesPython2.pyflakes.messages.html" /> <keyword name="missing_newline" id="missing_newline" ref="eric5.Plugins.CheckerPlugins.CodeStyleChecker.pep8.html#missing_newline" /> <keyword name="missing_newline" id="missing_newline" ref="eric5.UtilitiesPython2.pep8.html#missing_newline" /> <keyword name="missing_whitespace" id="missing_whitespace" ref="eric5.Plugins.CheckerPlugins.CodeStyleChecker.pep8.html#missing_whitespace" /> @@ -13282,7 +13282,7 @@ <keyword name="mute_string" id="mute_string" ref="eric5.Plugins.CheckerPlugins.CodeStyleChecker.pep8.html#mute_string" /> <keyword name="mute_string" id="mute_string" ref="eric5.UtilitiesPython2.pep8.html#mute_string" /> <keyword name="names" id="names" ref="eric5.Utilities.pyflakes.checker.html#names" /> - <keyword name="names" id="names" ref="eric5.UtilitiesPython2.py2flakes.checker.html#names" /> + <keyword name="names" id="names" ref="eric5.UtilitiesPython2.pyflakes.checker.html#names" /> <keyword name="normabsjoinpath" id="normabsjoinpath" ref="eric5.Utilities.__init__.html#normabsjoinpath" /> <keyword name="normabspath" id="normabspath" ref="eric5.Utilities.__init__.html#normabspath" /> <keyword name="normalizeCode" id="normalizeCode" ref="eric5.UtilitiesPython2.Tools.html#normalizeCode" /> @@ -13323,7 +13323,6 @@ <keyword name="pwRecode" id="pwRecode" ref="eric5.Utilities.crypto.__init__.html#pwRecode" /> <keyword name="pwReencrypt" id="pwReencrypt" ref="eric5.Utilities.crypto.__init__.html#pwReencrypt" /> <keyword name="py2compile" id="py2compile" ref="eric5.Utilities.__init__.html#py2compile" /> - <keyword name="py2flakes (Package)" id="py2flakes (Package)" ref="index-eric5.UtilitiesPython2.py2flakes.html" /> <keyword name="py3AES (Module)" id="py3AES (Module)" ref="eric5.Utilities.crypto.py3AES.html" /> <keyword name="py3PBKDF2 (Module)" id="py3PBKDF2 (Module)" ref="eric5.Utilities.crypto.py3PBKDF2.html" /> <keyword name="pyName" id="pyName" ref="eric5.Utilities.uic.html#pyName" /> @@ -13331,6 +13330,7 @@ <keyword name="pyName" id="pyName" ref="eric5.install.html#pyName" /> <keyword name="pyclbr (Module)" id="pyclbr (Module)" ref="eric5.Utilities.ClassBrowsers.pyclbr.html" /> <keyword name="pyflakes (Package)" id="pyflakes (Package)" ref="index-eric5.Utilities.pyflakes.html" /> + <keyword name="pyflakes (Package)" id="pyflakes (Package)" ref="index-eric5.UtilitiesPython2.pyflakes.html" /> <keyword name="python_3000_backticks" id="python_3000_backticks" ref="eric5.Plugins.CheckerPlugins.CodeStyleChecker.pep8.html#python_3000_backticks" /> <keyword name="python_3000_backticks" id="python_3000_backticks" ref="eric5.UtilitiesPython2.pep8.html#python_3000_backticks" /> <keyword name="python_3000_has_key" id="python_3000_has_key" ref="eric5.Plugins.CheckerPlugins.CodeStyleChecker.pep8.html#python_3000_has_key" /> @@ -13480,7 +13480,7 @@ <keyword name="uninstallEric" id="uninstallEric" ref="eric5.uninstall.html#uninstallEric" /> <keyword name="unregisterLexer" id="unregisterLexer" ref="eric5.QScintilla.Lexers.__init__.html#unregisterLexer" /> <keyword name="unusedAssignments" id="unusedAssignments" ref="eric5.Utilities.pyflakes.checker.html#unusedAssignments" /> - <keyword name="unusedAssignments" id="unusedAssignments" ref="eric5.UtilitiesPython2.py2flakes.checker.html#unusedAssignments" /> + <keyword name="unusedAssignments" id="unusedAssignments" ref="eric5.UtilitiesPython2.pyflakes.checker.html#unusedAssignments" /> <keyword name="usage" id="usage" ref="eric5.Toolbox.Startup.html#usage" /> <keyword name="usage" id="usage" ref="eric5.eric5_api.html#usage" /> <keyword name="usage" id="usage" ref="eric5.eric5_doc.html#usage" /> @@ -14289,8 +14289,8 @@ <file>eric5.UtilitiesPython2.TabnannyChecker.html</file> <file>eric5.UtilitiesPython2.Tools.html</file> <file>eric5.UtilitiesPython2.pep8.html</file> - <file>eric5.UtilitiesPython2.py2flakes.checker.html</file> - <file>eric5.UtilitiesPython2.py2flakes.messages.html</file> + <file>eric5.UtilitiesPython2.pyflakes.checker.html</file> + <file>eric5.UtilitiesPython2.pyflakes.messages.html</file> <file>eric5.VCS.CommandOptionsDialog.html</file> <file>eric5.VCS.ProjectBrowserHelper.html</file> <file>eric5.VCS.ProjectHelper.html</file> @@ -14429,7 +14429,7 @@ <file>index-eric5.Utilities.html</file> <file>index-eric5.Utilities.pyflakes.html</file> <file>index-eric5.UtilitiesPython2.html</file> - <file>index-eric5.UtilitiesPython2.py2flakes.html</file> + <file>index-eric5.UtilitiesPython2.pyflakes.html</file> <file>index-eric5.VCS.html</file> <file>index-eric5.ViewManager.html</file> <file>index-eric5.html</file>
--- a/Documentation/Source/eric5.Plugins.VcsPlugins.vcsMercurial.HgRepoConfigDataDialog.html Sat Feb 01 16:03:01 2014 +0100 +++ b/Documentation/Source/eric5.Plugins.VcsPlugins.vcsMercurial.HgRepoConfigDataDialog.html Sat Feb 01 16:29:24 2014 +0100 @@ -103,13 +103,23 @@ <p> Private slot to switch the default password visibility of the default push password. -</p><a NAME="HgRepoConfigDataDialog.on_defaultShowPasswordButton_clicked" ID="HgRepoConfigDataDialog.on_defaultShowPasswordButton_clicked"></a> +</p><dl> +<dt><i>checked</i></dt> +<dd> +state of the push button (boolean) +</dd> +</dl><a NAME="HgRepoConfigDataDialog.on_defaultShowPasswordButton_clicked" ID="HgRepoConfigDataDialog.on_defaultShowPasswordButton_clicked"></a> <h4>HgRepoConfigDataDialog.on_defaultShowPasswordButton_clicked</h4> <b>on_defaultShowPasswordButton_clicked</b>(<i>checked</i>) <p> Private slot to switch the default password visibility of the default password. -</p> +</p><dl> +<dt><i>checked</i></dt> +<dd> +state of the push button (boolean) +</dd> +</dl> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html> \ No newline at end of file
--- a/Documentation/Source/eric5.Plugins.VcsPlugins.vcsMercurial.HgUserConfigDataDialog.html Sat Feb 01 16:03:01 2014 +0100 +++ b/Documentation/Source/eric5.Plugins.VcsPlugins.vcsMercurial.HgUserConfigDataDialog.html Sat Feb 01 16:29:24 2014 +0100 @@ -74,7 +74,10 @@ <p> Constructor </p><dl> -<dt><i>parent</i></dt> +<dt><i>version</i></dt> +<dd> +Mercurial version info (tuple of two integers) +</dd><dt><i>parent</i></dt> <dd> reference to the parent widget (QWidget) </dd>
--- a/Documentation/Source/eric5.UtilitiesPython2.py2flakes.checker.html Sat Feb 01 16:03:01 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,907 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric5.UtilitiesPython2.py2flakes.checker</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric5.UtilitiesPython2.py2flakes.checker</h1> - -<h3>Global Attributes</h3> -<table> -<tr><td>_MAGIC_GLOBALS</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#Argument">Argument</a></td> -<td>Represents binding a name as an argument.</td> -</tr><tr> -<td><a href="#Assignment">Assignment</a></td> -<td>Represents binding a name with an explicit assignment.</td> -</tr><tr> -<td><a href="#Binding">Binding</a></td> -<td>Represents the binding of a value to a name.</td> -</tr><tr> -<td><a href="#Checker">Checker</a></td> -<td>Class to check the cleanliness and sanity of Python code.</td> -</tr><tr> -<td><a href="#ClassDefinition">ClassDefinition</a></td> -<td>Represents a class definition.</td> -</tr><tr> -<td><a href="#ClassScope">ClassScope</a></td> -<td>Class representing a name scope for a class.</td> -</tr><tr> -<td><a href="#Definition">Definition</a></td> -<td>A binding that defines a function or a class.</td> -</tr><tr> -<td><a href="#ExportBinding">ExportBinding</a></td> -<td>A binding created by an __all__ assignment.</td> -</tr><tr> -<td><a href="#FunctionDefinition">FunctionDefinition</a></td> -<td>Represents a function definition.</td> -</tr><tr> -<td><a href="#FunctionScope">FunctionScope</a></td> -<td>Class representing a name scope for a function.</td> -</tr><tr> -<td><a href="#GeneratorScope">GeneratorScope</a></td> -<td>Class representing a name scope for a generator function.</td> -</tr><tr> -<td><a href="#Importation">Importation</a></td> -<td>A binding created by an import statement.</td> -</tr><tr> -<td><a href="#ModuleScope">ModuleScope</a></td> -<td>Class representing a name scope for a module.</td> -</tr><tr> -<td><a href="#Scope">Scope</a></td> -<td>Class defining the scope base class.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr> -<td><a href="#__init__">__init__</a></td> -<td></td> -</tr><tr> -<td><a href="#__init___1">__init__</a></td> -<td></td> -</tr><tr> -<td><a href="#__init___2">__init__</a></td> -<td></td> -</tr><tr> -<td><a href="#__repr__">__repr__</a></td> -<td></td> -</tr><tr> -<td><a href="#__repr___1">__repr__</a></td> -<td></td> -</tr><tr> -<td><a href="#__str__">__str__</a></td> -<td></td> -</tr><tr> -<td><a href="#getNodeName">getNodeName</a></td> -<td>Module function for getting the name of a node.</td> -</tr><tr> -<td><a href="#getNodeType">getNodeType</a></td> -<td></td> -</tr><tr> -<td><a href="#getNodeType_1">getNodeType</a></td> -<td></td> -</tr><tr> -<td><a href="#iter_child_nodes">iter_child_nodes</a></td> -<td>Yield all direct child nodes of *node*, that is, all fields that are nodes and all items of fields that are lists of nodes.</td> -</tr><tr> -<td><a href="#names">names</a></td> -<td>Return a list of the names referenced by this binding.</td> -</tr><tr> -<td><a href="#unusedAssignments">unusedAssignments</a></td> -<td>Return a generator for the assignments which have not been used.</td> -</tr> -</table> -<hr /><hr /> -<a NAME="Argument" ID="Argument"></a> -<h2>Argument</h2> -<p> - Represents binding a name as an argument. -</p> -<h3>Derived from</h3> -Binding -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="Assignment" ID="Assignment"></a> -<h2>Assignment</h2> -<p> - Represents binding a name with an explicit assignment. -</p><p> - The checker will raise warnings for any Assignment that isn't used. Also, - the checker does not consider assignments in tuple/list unpacking to be - Assignments, rather it treats them as simple Bindings. -</p> -<h3>Derived from</h3> -Binding -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="Binding" ID="Binding"></a> -<h2>Binding</h2> -<p> - Represents the binding of a value to a name. -</p><p> - The checker uses this to keep track of which names have been bound and - which names have not. See Assignment for a special type of binding that - is checked with stricter rules. -</p> -<h3>Derived from</h3> -object -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="Checker" ID="Checker"></a> -<h2>Checker</h2> -<p> - Class to check the cleanliness and sanity of Python code. -</p> -<h3>Derived from</h3> -object -<h3>Class Attributes</h3> -<table> -<tr><td>AND</td></tr><tr><td>BOOLOP</td></tr><tr><td>COMPREHENSION</td></tr><tr><td>CONTINUE</td></tr><tr><td>LOAD</td></tr><tr><td>NONLOCAL</td></tr><tr><td>NUM</td></tr><tr><td>RETURN</td></tr><tr><td>SETCOMP</td></tr><tr><td>SLICE</td></tr><tr><td>TRYEXCEPT</td></tr><tr><td>_customBuiltIns</td></tr><tr><td>_getDoctestExamples</td></tr><tr><td>builtIns</td></tr><tr><td>nodeDepth</td></tr><tr><td>offset</td></tr><tr><td>traceTree</td></tr><tr><td>withDoctest</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#Checker.__init__">Checker</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#Checker.ASSIGN">ASSIGN</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.AUGASSIGN">AUGASSIGN</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.CLASSDEF">CLASSDEF</a></td> -<td>Check names used in a class definition, including its decorators, base classes, and the body of its definition.</td> -</tr><tr> -<td><a href="#Checker.DICTCOMP">DICTCOMP</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.EXCEPTHANDLER">EXCEPTHANDLER</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.FOR">FOR</a></td> -<td>Process bindings for loop variables.</td> -</tr><tr> -<td><a href="#Checker.FUNCTIONDEF">FUNCTIONDEF</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.GENERATOREXP">GENERATOREXP</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.GLOBAL">GLOBAL</a></td> -<td>Keep track of globals declarations.</td> -</tr><tr> -<td><a href="#Checker.IMPORT">IMPORT</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.IMPORTFROM">IMPORTFROM</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.LAMBDA">LAMBDA</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.LISTCOMP">LISTCOMP</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.NAME">NAME</a></td> -<td>Handle occurrence of Name (which can be a load/store/delete access.)</td> -</tr><tr> -<td><a href="#Checker.TRY">TRY</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.addArgs">addArgs</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.addBinding">addBinding</a></td> -<td>Called when a binding is altered.</td> -</tr><tr> -<td><a href="#Checker.checkDeadScopes">checkDeadScopes</a></td> -<td>Look at scopes which have been fully examined and report names in them which were imported but unused.</td> -</tr><tr> -<td><a href="#Checker.checkUnusedAssignments">checkUnusedAssignments</a></td> -<td>Check to see if any assignments have not been used.</td> -</tr><tr> -<td><a href="#Checker.collectLoopVars">collectLoopVars</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.deferAssignment">deferAssignment</a></td> -<td>Schedule an assignment handler to be called just after deferred function handlers.</td> -</tr><tr> -<td><a href="#Checker.deferFunction">deferFunction</a></td> -<td>Schedule a function handler to be called just before completion.</td> -</tr><tr> -<td><a href="#Checker.descendantOf">descendantOf</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.differentForks">differentForks</a></td> -<td>True, if lnode and rnode are located on different forks of IF/TRY</td> -</tr><tr> -<td><a href="#Checker.getCommonAncestor">getCommonAncestor</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.getDocstring">getDocstring</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.getNodeHandler">getNodeHandler</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.handleChildren">handleChildren</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.handleDoctests">handleDoctests</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.handleNode">handleNode</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.handleNodeDelete">handleNodeDelete</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.handleNodeLoad">handleNodeLoad</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.handleNodeStore">handleNodeStore</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.hasParent">hasParent</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.ignore">ignore</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.isDocstring">isDocstring</a></td> -<td>Determine if the given node is a docstring, as long as it is at the correct place in the node tree.</td> -</tr><tr> -<td><a href="#Checker.onFork">onFork</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.popScope">popScope</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.pushClassScope">pushClassScope</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.pushFunctionScope">pushFunctionScope</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.pushScope">pushScope</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.report">report</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.runDeferred">runDeferred</a></td> -<td>Run the callables in deferred using their associated scope stack.</td> -</tr><tr> -<td><a href="#Checker.runFunction">runFunction</a></td> -<td></td> -</tr><tr> -<td><a href="#Checker.scope">scope</a></td> -<td></td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="Checker.__init__" ID="Checker.__init__"></a> -<h4>Checker (Constructor)</h4> -<b>Checker</b>(<i>tree, filename='(none)', builtins=None</i>) -<p> - Constructor -</p><dl> -<dt><i>tree</i></dt> -<dd> -parsed module tree or module source code -</dd><dt><i>filename</i></dt> -<dd> -name of the module file (string) -</dd><dt><i>builtins</i></dt> -<dd> -set of names to be treated as builtins (set of string) -</dd> -</dl><a NAME="Checker.ASSIGN" ID="Checker.ASSIGN"></a> -<h4>Checker.ASSIGN</h4> -<b>ASSIGN</b>(<i>node</i>) -<a NAME="Checker.AUGASSIGN" ID="Checker.AUGASSIGN"></a> -<h4>Checker.AUGASSIGN</h4> -<b>AUGASSIGN</b>(<i>node</i>) -<a NAME="Checker.CLASSDEF" ID="Checker.CLASSDEF"></a> -<h4>Checker.CLASSDEF</h4> -<b>CLASSDEF</b>(<i>node</i>) -<p> - Check names used in a class definition, including its decorators, base - classes, and the body of its definition. Additionally, add its name to - the current scope. -</p><a NAME="Checker.DICTCOMP" ID="Checker.DICTCOMP"></a> -<h4>Checker.DICTCOMP</h4> -<b>DICTCOMP</b>(<i>node</i>) -<a NAME="Checker.EXCEPTHANDLER" ID="Checker.EXCEPTHANDLER"></a> -<h4>Checker.EXCEPTHANDLER</h4> -<b>EXCEPTHANDLER</b>(<i>node</i>) -<a NAME="Checker.FOR" ID="Checker.FOR"></a> -<h4>Checker.FOR</h4> -<b>FOR</b>(<i>node</i>) -<p> - Process bindings for loop variables. -</p><a NAME="Checker.FUNCTIONDEF" ID="Checker.FUNCTIONDEF"></a> -<h4>Checker.FUNCTIONDEF</h4> -<b>FUNCTIONDEF</b>(<i>node</i>) -<a NAME="Checker.GENERATOREXP" ID="Checker.GENERATOREXP"></a> -<h4>Checker.GENERATOREXP</h4> -<b>GENERATOREXP</b>(<i>node</i>) -<a NAME="Checker.GLOBAL" ID="Checker.GLOBAL"></a> -<h4>Checker.GLOBAL</h4> -<b>GLOBAL</b>(<i>node</i>) -<p> - Keep track of globals declarations. -</p><a NAME="Checker.IMPORT" ID="Checker.IMPORT"></a> -<h4>Checker.IMPORT</h4> -<b>IMPORT</b>(<i>node</i>) -<a NAME="Checker.IMPORTFROM" ID="Checker.IMPORTFROM"></a> -<h4>Checker.IMPORTFROM</h4> -<b>IMPORTFROM</b>(<i>node</i>) -<a NAME="Checker.LAMBDA" ID="Checker.LAMBDA"></a> -<h4>Checker.LAMBDA</h4> -<b>LAMBDA</b>(<i>node</i>) -<a NAME="Checker.LISTCOMP" ID="Checker.LISTCOMP"></a> -<h4>Checker.LISTCOMP</h4> -<b>LISTCOMP</b>(<i>node</i>) -<a NAME="Checker.NAME" ID="Checker.NAME"></a> -<h4>Checker.NAME</h4> -<b>NAME</b>(<i>node</i>) -<p> - Handle occurrence of Name (which can be a load/store/delete access.) -</p><a NAME="Checker.TRY" ID="Checker.TRY"></a> -<h4>Checker.TRY</h4> -<b>TRY</b>(<i>node</i>) -<a NAME="Checker.addArgs" ID="Checker.addArgs"></a> -<h4>Checker.addArgs</h4> -<b>addArgs</b>(<i></i>) -<a NAME="Checker.addBinding" ID="Checker.addBinding"></a> -<h4>Checker.addBinding</h4> -<b>addBinding</b>(<i>node, value, reportRedef=True</i>) -<p> - Called when a binding is altered. -</p><p> - - `node` is the statement responsible for the change - - `value` is the optional new value, a Binding instance, associated - with the binding; if None, the binding is deleted if it exists. - - if `reportRedef` is True (default), rebinding while unused will be - reported. -</p><a NAME="Checker.checkDeadScopes" ID="Checker.checkDeadScopes"></a> -<h4>Checker.checkDeadScopes</h4> -<b>checkDeadScopes</b>(<i></i>) -<p> - Look at scopes which have been fully examined and report names in them - which were imported but unused. -</p><a NAME="Checker.checkUnusedAssignments" ID="Checker.checkUnusedAssignments"></a> -<h4>Checker.checkUnusedAssignments</h4> -<b>checkUnusedAssignments</b>(<i></i>) -<p> - Check to see if any assignments have not been used. -</p><a NAME="Checker.collectLoopVars" ID="Checker.collectLoopVars"></a> -<h4>Checker.collectLoopVars</h4> -<b>collectLoopVars</b>(<i></i>) -<a NAME="Checker.deferAssignment" ID="Checker.deferAssignment"></a> -<h4>Checker.deferAssignment</h4> -<b>deferAssignment</b>(<i>callable</i>) -<p> - Schedule an assignment handler to be called just after deferred - function handlers. -</p><a NAME="Checker.deferFunction" ID="Checker.deferFunction"></a> -<h4>Checker.deferFunction</h4> -<b>deferFunction</b>(<i>callable</i>) -<p> - Schedule a function handler to be called just before completion. -</p><p> - This is used for handling function bodies, which must be deferred - because code later in the file might modify the global scope. When - `callable` is called, the scope at the time this is called will be - restored, however it will contain any new bindings added to it. -</p><a NAME="Checker.descendantOf" ID="Checker.descendantOf"></a> -<h4>Checker.descendantOf</h4> -<b>descendantOf</b>(<i>node, ancestors, stop=None</i>) -<a NAME="Checker.differentForks" ID="Checker.differentForks"></a> -<h4>Checker.differentForks</h4> -<b>differentForks</b>(<i>lnode, rnode</i>) -<p> -True, if lnode and rnode are located on different forks of IF/TRY -</p><a NAME="Checker.getCommonAncestor" ID="Checker.getCommonAncestor"></a> -<h4>Checker.getCommonAncestor</h4> -<b>getCommonAncestor</b>(<i>lnode, rnode, stop=None</i>) -<a NAME="Checker.getDocstring" ID="Checker.getDocstring"></a> -<h4>Checker.getDocstring</h4> -<b>getDocstring</b>(<i>node</i>) -<a NAME="Checker.getNodeHandler" ID="Checker.getNodeHandler"></a> -<h4>Checker.getNodeHandler</h4> -<b>getNodeHandler</b>(<i>node_class</i>) -<a NAME="Checker.handleChildren" ID="Checker.handleChildren"></a> -<h4>Checker.handleChildren</h4> -<b>handleChildren</b>(<i>tree</i>) -<a NAME="Checker.handleDoctests" ID="Checker.handleDoctests"></a> -<h4>Checker.handleDoctests</h4> -<b>handleDoctests</b>(<i>node</i>) -<a NAME="Checker.handleNode" ID="Checker.handleNode"></a> -<h4>Checker.handleNode</h4> -<b>handleNode</b>(<i>node, parent</i>) -<a NAME="Checker.handleNodeDelete" ID="Checker.handleNodeDelete"></a> -<h4>Checker.handleNodeDelete</h4> -<b>handleNodeDelete</b>(<i>node</i>) -<a NAME="Checker.handleNodeLoad" ID="Checker.handleNodeLoad"></a> -<h4>Checker.handleNodeLoad</h4> -<b>handleNodeLoad</b>(<i>node</i>) -<a NAME="Checker.handleNodeStore" ID="Checker.handleNodeStore"></a> -<h4>Checker.handleNodeStore</h4> -<b>handleNodeStore</b>(<i>node</i>) -<a NAME="Checker.hasParent" ID="Checker.hasParent"></a> -<h4>Checker.hasParent</h4> -<b>hasParent</b>(<i>node, kind</i>) -<a NAME="Checker.ignore" ID="Checker.ignore"></a> -<h4>Checker.ignore</h4> -<b>ignore</b>(<i>node</i>) -<a NAME="Checker.isDocstring" ID="Checker.isDocstring"></a> -<h4>Checker.isDocstring</h4> -<b>isDocstring</b>(<i>node</i>) -<p> - Determine if the given node is a docstring, as long as it is at the - correct place in the node tree. -</p><a NAME="Checker.onFork" ID="Checker.onFork"></a> -<h4>Checker.onFork</h4> -<b>onFork</b>(<i>parent, lnode, rnode, items</i>) -<a NAME="Checker.popScope" ID="Checker.popScope"></a> -<h4>Checker.popScope</h4> -<b>popScope</b>(<i></i>) -<a NAME="Checker.pushClassScope" ID="Checker.pushClassScope"></a> -<h4>Checker.pushClassScope</h4> -<b>pushClassScope</b>(<i></i>) -<a NAME="Checker.pushFunctionScope" ID="Checker.pushFunctionScope"></a> -<h4>Checker.pushFunctionScope</h4> -<b>pushFunctionScope</b>(<i></i>) -<a NAME="Checker.pushScope" ID="Checker.pushScope"></a> -<h4>Checker.pushScope</h4> -<b>pushScope</b>(<i>scopeClass=FunctionScope</i>) -<a NAME="Checker.report" ID="Checker.report"></a> -<h4>Checker.report</h4> -<b>report</b>(<i>messageClass, *args, **kwargs</i>) -<a NAME="Checker.runDeferred" ID="Checker.runDeferred"></a> -<h4>Checker.runDeferred</h4> -<b>runDeferred</b>(<i>deferred</i>) -<p> - Run the callables in deferred using their associated scope stack. -</p><a NAME="Checker.runFunction" ID="Checker.runFunction"></a> -<h4>Checker.runFunction</h4> -<b>runFunction</b>(<i></i>) -<a NAME="Checker.scope" ID="Checker.scope"></a> -<h4>Checker.scope</h4> -<b>scope</b>(<i></i>) - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="ClassDefinition" ID="ClassDefinition"></a> -<h2>ClassDefinition</h2> -<p> - Represents a class definition. -</p> -<h3>Derived from</h3> -Definition -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="ClassScope" ID="ClassScope"></a> -<h2>ClassScope</h2> -<p> - Class representing a name scope for a class. -</p> -<h3>Derived from</h3> -Scope -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="Definition" ID="Definition"></a> -<h2>Definition</h2> -<p> - A binding that defines a function or a class. -</p> -<h3>Derived from</h3> -Binding -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="ExportBinding" ID="ExportBinding"></a> -<h2>ExportBinding</h2> -<p> - A binding created by an __all__ assignment. If the names in the list - can be determined statically, they will be treated as names for export and - additional checking applied to them. -</p><p> - The only __all__ assignment that can be recognized is one which takes - the value of a literal list containing literal strings. For example:: -</p><p> - __all__ = ["foo", "bar"] -</p><p> - Names which are imported and not otherwise used but appear in the value of - __all__ will not have an unused import warning reported for them. -</p> -<h3>Derived from</h3> -Binding -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="FunctionDefinition" ID="FunctionDefinition"></a> -<h2>FunctionDefinition</h2> -<p> - Represents a function definition. -</p> -<h3>Derived from</h3> -Definition -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="FunctionScope" ID="FunctionScope"></a> -<h2>FunctionScope</h2> -<p> - Class representing a name scope for a function. -</p> -<h3>Derived from</h3> -Scope -<h3>Class Attributes</h3> -<table> -<tr><td>alwaysUsed</td></tr><tr><td>usesLocals</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="GeneratorScope" ID="GeneratorScope"></a> -<h2>GeneratorScope</h2> -<p> - Class representing a name scope for a generator function. -</p> -<h3>Derived from</h3> -Scope -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="Importation" ID="Importation"></a> -<h2>Importation</h2> -<p> - A binding created by an import statement. -</p> -<h3>Derived from</h3> -Binding -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="ModuleScope" ID="ModuleScope"></a> -<h2>ModuleScope</h2> -<p> - Class representing a name scope for a module. -</p> -<h3>Derived from</h3> -Scope -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="Scope" ID="Scope"></a> -<h2>Scope</h2> -<p> - Class defining the scope base class. -</p> -<h3>Derived from</h3> -dict -<h3>Class Attributes</h3> -<table> -<tr><td>importStarred</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="__init__" ID="__init__"></a> -<h2>__init__</h2> -<b>__init__</b>(<i>self, name, source</i>) - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="__init___1" ID="__init___1"></a> -<h2>__init__</h2> -<b>__init__</b>(<i>self, name, source</i>) - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="__init___2" ID="__init___2"></a> -<h2>__init__</h2> -<b>__init__</b>(<i>self</i>) - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="__repr__" ID="__repr__"></a> -<h2>__repr__</h2> -<b>__repr__</b>(<i>self</i>) - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="__repr___1" ID="__repr___1"></a> -<h2>__repr__</h2> -<b>__repr__</b>(<i>self</i>) - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="__str__" ID="__str__"></a> -<h2>__str__</h2> -<b>__str__</b>(<i>self</i>) - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="getNodeName" ID="getNodeName"></a> -<h2>getNodeName</h2> -<b>getNodeName</b>(<i>node</i>) -<p> - Module function for getting the name of a node. -</p> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="getNodeType" ID="getNodeType"></a> -<h2>getNodeType</h2> -<b>getNodeType</b>(<i>node_class</i>) - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="getNodeType_1" ID="getNodeType_1"></a> -<h2>getNodeType</h2> -<b>getNodeType</b>(<i>node_class</i>) - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="iter_child_nodes" ID="iter_child_nodes"></a> -<h2>iter_child_nodes</h2> -<b>iter_child_nodes</b>(<i>node</i>) -<p> - Yield all direct child nodes of *node*, that is, all fields that - are nodes and all items of fields that are lists of nodes. -</p> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="names" ID="names"></a> -<h2>names</h2> -<b>names</b>(<i>self</i>) -<p> - Return a list of the names referenced by this binding. -</p> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="unusedAssignments" ID="unusedAssignments"></a> -<h2>unusedAssignments</h2> -<b>unusedAssignments</b>(<i>self</i>) -<p> - Return a generator for the assignments which have not been used. -</p> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric5.UtilitiesPython2.py2flakes.messages.html Sat Feb 01 16:03:01 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,756 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric5.UtilitiesPython2.py2flakes.messages</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric5.UtilitiesPython2.py2flakes.messages</h1> -<p> -Module implementing the messages for pyflakes. -</p><p> -Note: This is a copy of the identical module contained in Utilities.pyflakes. -It is here to make it accessible to the external Python 2 process. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#DoctestSyntaxError">DoctestSyntaxError</a></td> -<td>Class defining the "Doctest syntax Error" message.</td> -</tr><tr> -<td><a href="#DuplicateArgument">DuplicateArgument</a></td> -<td>Class defining the "Duplicate Argument" message.</td> -</tr><tr> -<td><a href="#ImportShadowedByLoopVar">ImportShadowedByLoopVar</a></td> -<td>Class defining the "Import Shadowed By Loop Var" message.</td> -</tr><tr> -<td><a href="#ImportStarUsed">ImportStarUsed</a></td> -<td>Class defining the "Import Star Used" message.</td> -</tr><tr> -<td><a href="#LateFutureImport">LateFutureImport</a></td> -<td>Class defining the "Late Future Import" message.</td> -</tr><tr> -<td><a href="#Message">Message</a></td> -<td>Class defining the base for all specific message classes.</td> -</tr><tr> -<td><a href="#Redefined">Redefined</a></td> -<td>Class defining the "Redefined" message.</td> -</tr><tr> -<td><a href="#RedefinedInListComp">RedefinedInListComp</a></td> -<td>Class defining the "Redefined In List Comprehension" message.</td> -</tr><tr> -<td><a href="#RedefinedWhileUnused">RedefinedWhileUnused</a></td> -<td>Class defining the "Redefined While Unused" message.</td> -</tr><tr> -<td><a href="#UndefinedExport">UndefinedExport</a></td> -<td>Class defining the "Undefined Export" message.</td> -</tr><tr> -<td><a href="#UndefinedLocal">UndefinedLocal</a></td> -<td>Class defining the "Undefined Local Variable" message.</td> -</tr><tr> -<td><a href="#UndefinedName">UndefinedName</a></td> -<td>Class defining the "Undefined Name" message.</td> -</tr><tr> -<td><a href="#UnusedImport">UnusedImport</a></td> -<td>Class defining the "Unused Import" message.</td> -</tr><tr> -<td><a href="#UnusedVariable">UnusedVariable</a></td> -<td>Class defining the "Unused Variable" message.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="DoctestSyntaxError" ID="DoctestSyntaxError"></a> -<h2>DoctestSyntaxError</h2> -<p> - Class defining the "Doctest syntax Error" message. -</p> -<h3>Derived from</h3> -Message -<h3>Class Attributes</h3> -<table> -<tr><td>message</td></tr><tr><td>message_id</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#DoctestSyntaxError.__init__">DoctestSyntaxError</a></td> -<td>Constructor</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="DoctestSyntaxError.__init__" ID="DoctestSyntaxError.__init__"></a> -<h4>DoctestSyntaxError (Constructor)</h4> -<b>DoctestSyntaxError</b>(<i>filename, loc, position=None</i>) -<p> - Constructor -</p><dl> -<dt><i>filename</i></dt> -<dd> -name of the file (string) -</dd><dt><i>loc</i></dt> -<dd> -location of the issue -</dd><dt><i>position</i></dt> -<dd> -position of the syntax error -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="DuplicateArgument" ID="DuplicateArgument"></a> -<h2>DuplicateArgument</h2> -<p> - Class defining the "Duplicate Argument" message. -</p> -<h3>Derived from</h3> -Message -<h3>Class Attributes</h3> -<table> -<tr><td>message</td></tr><tr><td>message_id</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#DuplicateArgument.__init__">DuplicateArgument</a></td> -<td>Constructor</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="DuplicateArgument.__init__" ID="DuplicateArgument.__init__"></a> -<h4>DuplicateArgument (Constructor)</h4> -<b>DuplicateArgument</b>(<i>filename, loc, name</i>) -<p> - Constructor -</p><dl> -<dt><i>filename</i></dt> -<dd> -name of the file (string) -</dd><dt><i>loc</i></dt> -<dd> -location of the issue -</dd><dt><i>name</i></dt> -<dd> -name of the duplicate argument (string) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="ImportShadowedByLoopVar" ID="ImportShadowedByLoopVar"></a> -<h2>ImportShadowedByLoopVar</h2> -<p> - Class defining the "Import Shadowed By Loop Var" message. -</p> -<h3>Derived from</h3> -Message -<h3>Class Attributes</h3> -<table> -<tr><td>message</td></tr><tr><td>message_id</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#ImportShadowedByLoopVar.__init__">ImportShadowedByLoopVar</a></td> -<td>Constructor</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="ImportShadowedByLoopVar.__init__" ID="ImportShadowedByLoopVar.__init__"></a> -<h4>ImportShadowedByLoopVar (Constructor)</h4> -<b>ImportShadowedByLoopVar</b>(<i>filename, loc, name, orig_loc</i>) -<p> - Constructor -</p><dl> -<dt><i>filename</i></dt> -<dd> -name of the file (string) -</dd><dt><i>loc</i></dt> -<dd> -location of the issue -</dd><dt><i>name</i></dt> -<dd> -name of the shadowed import (string) -</dd><dt><i>orig_loc</i></dt> -<dd> -location of the import -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="ImportStarUsed" ID="ImportStarUsed"></a> -<h2>ImportStarUsed</h2> -<p> - Class defining the "Import Star Used" message. -</p> -<h3>Derived from</h3> -Message -<h3>Class Attributes</h3> -<table> -<tr><td>message</td></tr><tr><td>message_id</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#ImportStarUsed.__init__">ImportStarUsed</a></td> -<td>Constructor</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="ImportStarUsed.__init__" ID="ImportStarUsed.__init__"></a> -<h4>ImportStarUsed (Constructor)</h4> -<b>ImportStarUsed</b>(<i>filename, loc, modname</i>) -<p> - Constructor -</p><dl> -<dt><i>filename</i></dt> -<dd> -name of the file (string) -</dd><dt><i>loc</i></dt> -<dd> -location of the issue -</dd><dt><i>modname</i></dt> -<dd> -name of the module imported using star import (string) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="LateFutureImport" ID="LateFutureImport"></a> -<h2>LateFutureImport</h2> -<p> - Class defining the "Late Future Import" message. -</p> -<h3>Derived from</h3> -Message -<h3>Class Attributes</h3> -<table> -<tr><td>message</td></tr><tr><td>message_id</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#LateFutureImport.__init__">LateFutureImport</a></td> -<td>Constructor</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="LateFutureImport.__init__" ID="LateFutureImport.__init__"></a> -<h4>LateFutureImport (Constructor)</h4> -<b>LateFutureImport</b>(<i>filename, loc, names</i>) -<p> - Constructor -</p><dl> -<dt><i>filename</i></dt> -<dd> -name of the file (string) -</dd><dt><i>loc</i></dt> -<dd> -location of the issue -</dd><dt><i>names</i></dt> -<dd> -names of the imported futures (string) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="Message" ID="Message"></a> -<h2>Message</h2> -<p> - Class defining the base for all specific message classes. -</p> -<h3>Derived from</h3> -object -<h3>Class Attributes</h3> -<table> -<tr><td>message</td></tr><tr><td>message_args</td></tr><tr><td>message_id</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#Message.__init__">Message</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#Message.__str__">__str__</a></td> -<td>Special method return a string representation of the instance object.</td> -</tr><tr> -<td><a href="#Message.getMessageData">getMessageData</a></td> -<td>Public method to get the individual message data elements.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="Message.__init__" ID="Message.__init__"></a> -<h4>Message (Constructor)</h4> -<b>Message</b>(<i>filename, loc</i>) -<p> - Constructor -</p><dl> -<dt><i>filename</i></dt> -<dd> -name of the file (string) -</dd><dt><i>loc</i></dt> -<dd> -location of the issue -</dd> -</dl><a NAME="Message.__str__" ID="Message.__str__"></a> -<h4>Message.__str__</h4> -<b>__str__</b>(<i></i>) -<p> - Special method return a string representation of the instance object. -</p><dl> -<dt>Returns:</dt> -<dd> -string representation of the object (string) -</dd> -</dl><a NAME="Message.getMessageData" ID="Message.getMessageData"></a> -<h4>Message.getMessageData</h4> -<b>getMessageData</b>(<i></i>) -<p> - Public method to get the individual message data elements. -</p><dl> -<dt>Returns:</dt> -<dd> -tuple containing file name, line number, message ID and - message arguments (string, integer, string, list) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="Redefined" ID="Redefined"></a> -<h2>Redefined</h2> -<p> - Class defining the "Redefined" message. -</p> -<h3>Derived from</h3> -Message -<h3>Class Attributes</h3> -<table> -<tr><td>message</td></tr><tr><td>message_id</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#Redefined.__init__">Redefined</a></td> -<td>Constructor</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="Redefined.__init__" ID="Redefined.__init__"></a> -<h4>Redefined (Constructor)</h4> -<b>Redefined</b>(<i>filename, loc, name, orig_loc</i>) -<p> - Constructor -</p><dl> -<dt><i>filename</i></dt> -<dd> -name of the file (string) -</dd><dt><i>loc</i></dt> -<dd> -location of the issue -</dd><dt><i>name</i></dt> -<dd> -name of the redefined function (string) -</dd><dt><i>orig_loc</i></dt> -<dd> -location of the original definition -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="RedefinedInListComp" ID="RedefinedInListComp"></a> -<h2>RedefinedInListComp</h2> -<p> - Class defining the "Redefined In List Comprehension" message. -</p> -<h3>Derived from</h3> -Message -<h3>Class Attributes</h3> -<table> -<tr><td>message</td></tr><tr><td>message_id</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#RedefinedInListComp.__init__">RedefinedInListComp</a></td> -<td>Constructor</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="RedefinedInListComp.__init__" ID="RedefinedInListComp.__init__"></a> -<h4>RedefinedInListComp (Constructor)</h4> -<b>RedefinedInListComp</b>(<i>filename, loc, name, orig_loc</i>) -<p> - Constructor -</p><dl> -<dt><i>filename</i></dt> -<dd> -name of the file (string) -</dd><dt><i>loc</i></dt> -<dd> -location of the issue -</dd><dt><i>name</i></dt> -<dd> -name of the redefined object (string) -</dd><dt><i>orig_loc</i></dt> -<dd> -location of the original definition -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="RedefinedWhileUnused" ID="RedefinedWhileUnused"></a> -<h2>RedefinedWhileUnused</h2> -<p> - Class defining the "Redefined While Unused" message. -</p> -<h3>Derived from</h3> -Message -<h3>Class Attributes</h3> -<table> -<tr><td>message</td></tr><tr><td>message_id</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#RedefinedWhileUnused.__init__">RedefinedWhileUnused</a></td> -<td>Constructor</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="RedefinedWhileUnused.__init__" ID="RedefinedWhileUnused.__init__"></a> -<h4>RedefinedWhileUnused (Constructor)</h4> -<b>RedefinedWhileUnused</b>(<i>filename, loc, name, orig_loc</i>) -<p> - Constructor -</p><dl> -<dt><i>filename</i></dt> -<dd> -name of the file (string) -</dd><dt><i>loc</i></dt> -<dd> -location of the issue -</dd><dt><i>name</i></dt> -<dd> -name of the redefined object (string) -</dd><dt><i>orig_loc</i></dt> -<dd> -location of the original definition -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="UndefinedExport" ID="UndefinedExport"></a> -<h2>UndefinedExport</h2> -<p> - Class defining the "Undefined Export" message. -</p> -<h3>Derived from</h3> -Message -<h3>Class Attributes</h3> -<table> -<tr><td>message</td></tr><tr><td>message_id</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#UndefinedExport.__init__">UndefinedExport</a></td> -<td>Constructor</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="UndefinedExport.__init__" ID="UndefinedExport.__init__"></a> -<h4>UndefinedExport (Constructor)</h4> -<b>UndefinedExport</b>(<i>filename, loc, name</i>) -<p> - Constructor -</p><dl> -<dt><i>filename</i></dt> -<dd> -name of the file (string) -</dd><dt><i>loc</i></dt> -<dd> -location of the issue -</dd><dt><i>name</i></dt> -<dd> -undefined exported name (string) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="UndefinedLocal" ID="UndefinedLocal"></a> -<h2>UndefinedLocal</h2> -<p> - Class defining the "Undefined Local Variable" message. -</p> -<h3>Derived from</h3> -Message -<h3>Class Attributes</h3> -<table> -<tr><td>message</td></tr><tr><td>message_id</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#UndefinedLocal.__init__">UndefinedLocal</a></td> -<td>Constructor</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="UndefinedLocal.__init__" ID="UndefinedLocal.__init__"></a> -<h4>UndefinedLocal (Constructor)</h4> -<b>UndefinedLocal</b>(<i>filename, loc, name, orig_loc</i>) -<p> - Constructor -</p><dl> -<dt><i>filename</i></dt> -<dd> -name of the file (string) -</dd><dt><i>loc</i></dt> -<dd> -location of the issue -</dd><dt><i>name</i></dt> -<dd> -name of the prematurely referenced variable (string) -</dd><dt><i>orig_loc</i></dt> -<dd> -location of the variable definition -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="UndefinedName" ID="UndefinedName"></a> -<h2>UndefinedName</h2> -<p> - Class defining the "Undefined Name" message. -</p> -<h3>Derived from</h3> -Message -<h3>Class Attributes</h3> -<table> -<tr><td>message</td></tr><tr><td>message_id</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#UndefinedName.__init__">UndefinedName</a></td> -<td>Constructor</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="UndefinedName.__init__" ID="UndefinedName.__init__"></a> -<h4>UndefinedName (Constructor)</h4> -<b>UndefinedName</b>(<i>filename, loc, name</i>) -<p> - Constructor -</p><dl> -<dt><i>filename</i></dt> -<dd> -name of the file (string) -</dd><dt><i>loc</i></dt> -<dd> -location of the issue -</dd><dt><i>name</i></dt> -<dd> -undefined name (string) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="UnusedImport" ID="UnusedImport"></a> -<h2>UnusedImport</h2> -<p> - Class defining the "Unused Import" message. -</p> -<h3>Derived from</h3> -Message -<h3>Class Attributes</h3> -<table> -<tr><td>message</td></tr><tr><td>message_id</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#UnusedImport.__init__">UnusedImport</a></td> -<td>Constructor</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="UnusedImport.__init__" ID="UnusedImport.__init__"></a> -<h4>UnusedImport (Constructor)</h4> -<b>UnusedImport</b>(<i>filename, loc, name</i>) -<p> - Constructor -</p><dl> -<dt><i>filename</i></dt> -<dd> -name of the file (string) -</dd><dt><i>loc</i></dt> -<dd> -location of the issue -</dd><dt><i>name</i></dt> -<dd> -name of the unused import (string) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="UnusedVariable" ID="UnusedVariable"></a> -<h2>UnusedVariable</h2> -<p> - Class defining the "Unused Variable" message. -</p><p> - Indicates that a variable has been explicitly assigned to but not actually - used. -</p> -<h3>Derived from</h3> -Message -<h3>Class Attributes</h3> -<table> -<tr><td>message</td></tr><tr><td>message_id</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#UnusedVariable.__init__">UnusedVariable</a></td> -<td>Constructor</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="UnusedVariable.__init__" ID="UnusedVariable.__init__"></a> -<h4>UnusedVariable (Constructor)</h4> -<b>UnusedVariable</b>(<i>filename, loc, names</i>) -<p> - Constructor -</p><dl> -<dt><i>filename</i></dt> -<dd> -name of the file (string) -</dd><dt><i>loc</i></dt> -<dd> -location of the issue -</dd><dt><i>names</i></dt> -<dd> -names of unused variable (string) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/eric5.UtilitiesPython2.pyflakes.checker.html Sat Feb 01 16:29:24 2014 +0100 @@ -0,0 +1,907 @@ +<!DOCTYPE html> +<html><head> +<title>eric5.UtilitiesPython2.pyflakes.checker</title> +<meta charset="UTF-8"> +<style> +body { + background: #EDECE6; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #85774A; } +h2 { color: white; background: #85774A; } +h3 { color: white; background: #9D936E; } +h4 { color: white; background: #9D936E; } + +a { color: #BA6D36; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>eric5.UtilitiesPython2.pyflakes.checker</h1> + +<h3>Global Attributes</h3> +<table> +<tr><td>_MAGIC_GLOBALS</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#Argument">Argument</a></td> +<td>Represents binding a name as an argument.</td> +</tr><tr> +<td><a href="#Assignment">Assignment</a></td> +<td>Represents binding a name with an explicit assignment.</td> +</tr><tr> +<td><a href="#Binding">Binding</a></td> +<td>Represents the binding of a value to a name.</td> +</tr><tr> +<td><a href="#Checker">Checker</a></td> +<td>Class to check the cleanliness and sanity of Python code.</td> +</tr><tr> +<td><a href="#ClassDefinition">ClassDefinition</a></td> +<td>Represents a class definition.</td> +</tr><tr> +<td><a href="#ClassScope">ClassScope</a></td> +<td>Class representing a name scope for a class.</td> +</tr><tr> +<td><a href="#Definition">Definition</a></td> +<td>A binding that defines a function or a class.</td> +</tr><tr> +<td><a href="#ExportBinding">ExportBinding</a></td> +<td>A binding created by an __all__ assignment.</td> +</tr><tr> +<td><a href="#FunctionDefinition">FunctionDefinition</a></td> +<td>Represents a function definition.</td> +</tr><tr> +<td><a href="#FunctionScope">FunctionScope</a></td> +<td>Class representing a name scope for a function.</td> +</tr><tr> +<td><a href="#GeneratorScope">GeneratorScope</a></td> +<td>Class representing a name scope for a generator function.</td> +</tr><tr> +<td><a href="#Importation">Importation</a></td> +<td>A binding created by an import statement.</td> +</tr><tr> +<td><a href="#ModuleScope">ModuleScope</a></td> +<td>Class representing a name scope for a module.</td> +</tr><tr> +<td><a href="#Scope">Scope</a></td> +<td>Class defining the scope base class.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr> +<td><a href="#__init__">__init__</a></td> +<td></td> +</tr><tr> +<td><a href="#__init___1">__init__</a></td> +<td></td> +</tr><tr> +<td><a href="#__init___2">__init__</a></td> +<td></td> +</tr><tr> +<td><a href="#__repr__">__repr__</a></td> +<td></td> +</tr><tr> +<td><a href="#__repr___1">__repr__</a></td> +<td></td> +</tr><tr> +<td><a href="#__str__">__str__</a></td> +<td></td> +</tr><tr> +<td><a href="#getNodeName">getNodeName</a></td> +<td>Module function for getting the name of a node.</td> +</tr><tr> +<td><a href="#getNodeType">getNodeType</a></td> +<td></td> +</tr><tr> +<td><a href="#getNodeType_1">getNodeType</a></td> +<td></td> +</tr><tr> +<td><a href="#iter_child_nodes">iter_child_nodes</a></td> +<td>Yield all direct child nodes of *node*, that is, all fields that are nodes and all items of fields that are lists of nodes.</td> +</tr><tr> +<td><a href="#names">names</a></td> +<td>Return a list of the names referenced by this binding.</td> +</tr><tr> +<td><a href="#unusedAssignments">unusedAssignments</a></td> +<td>Return a generator for the assignments which have not been used.</td> +</tr> +</table> +<hr /><hr /> +<a NAME="Argument" ID="Argument"></a> +<h2>Argument</h2> +<p> + Represents binding a name as an argument. +</p> +<h3>Derived from</h3> +Binding +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> + +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="Assignment" ID="Assignment"></a> +<h2>Assignment</h2> +<p> + Represents binding a name with an explicit assignment. +</p><p> + The checker will raise warnings for any Assignment that isn't used. Also, + the checker does not consider assignments in tuple/list unpacking to be + Assignments, rather it treats them as simple Bindings. +</p> +<h3>Derived from</h3> +Binding +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> + +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="Binding" ID="Binding"></a> +<h2>Binding</h2> +<p> + Represents the binding of a value to a name. +</p><p> + The checker uses this to keep track of which names have been bound and + which names have not. See Assignment for a special type of binding that + is checked with stricter rules. +</p> +<h3>Derived from</h3> +object +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> + +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="Checker" ID="Checker"></a> +<h2>Checker</h2> +<p> + Class to check the cleanliness and sanity of Python code. +</p> +<h3>Derived from</h3> +object +<h3>Class Attributes</h3> +<table> +<tr><td>AND</td></tr><tr><td>BOOLOP</td></tr><tr><td>COMPREHENSION</td></tr><tr><td>CONTINUE</td></tr><tr><td>LOAD</td></tr><tr><td>NONLOCAL</td></tr><tr><td>NUM</td></tr><tr><td>RETURN</td></tr><tr><td>SETCOMP</td></tr><tr><td>SLICE</td></tr><tr><td>TRYEXCEPT</td></tr><tr><td>_customBuiltIns</td></tr><tr><td>_getDoctestExamples</td></tr><tr><td>builtIns</td></tr><tr><td>nodeDepth</td></tr><tr><td>offset</td></tr><tr><td>traceTree</td></tr><tr><td>withDoctest</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#Checker.__init__">Checker</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#Checker.ASSIGN">ASSIGN</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.AUGASSIGN">AUGASSIGN</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.CLASSDEF">CLASSDEF</a></td> +<td>Check names used in a class definition, including its decorators, base classes, and the body of its definition.</td> +</tr><tr> +<td><a href="#Checker.DICTCOMP">DICTCOMP</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.EXCEPTHANDLER">EXCEPTHANDLER</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.FOR">FOR</a></td> +<td>Process bindings for loop variables.</td> +</tr><tr> +<td><a href="#Checker.FUNCTIONDEF">FUNCTIONDEF</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.GENERATOREXP">GENERATOREXP</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.GLOBAL">GLOBAL</a></td> +<td>Keep track of globals declarations.</td> +</tr><tr> +<td><a href="#Checker.IMPORT">IMPORT</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.IMPORTFROM">IMPORTFROM</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.LAMBDA">LAMBDA</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.LISTCOMP">LISTCOMP</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.NAME">NAME</a></td> +<td>Handle occurrence of Name (which can be a load/store/delete access.)</td> +</tr><tr> +<td><a href="#Checker.TRY">TRY</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.addArgs">addArgs</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.addBinding">addBinding</a></td> +<td>Called when a binding is altered.</td> +</tr><tr> +<td><a href="#Checker.checkDeadScopes">checkDeadScopes</a></td> +<td>Look at scopes which have been fully examined and report names in them which were imported but unused.</td> +</tr><tr> +<td><a href="#Checker.checkUnusedAssignments">checkUnusedAssignments</a></td> +<td>Check to see if any assignments have not been used.</td> +</tr><tr> +<td><a href="#Checker.collectLoopVars">collectLoopVars</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.deferAssignment">deferAssignment</a></td> +<td>Schedule an assignment handler to be called just after deferred function handlers.</td> +</tr><tr> +<td><a href="#Checker.deferFunction">deferFunction</a></td> +<td>Schedule a function handler to be called just before completion.</td> +</tr><tr> +<td><a href="#Checker.descendantOf">descendantOf</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.differentForks">differentForks</a></td> +<td>True, if lnode and rnode are located on different forks of IF/TRY</td> +</tr><tr> +<td><a href="#Checker.getCommonAncestor">getCommonAncestor</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.getDocstring">getDocstring</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.getNodeHandler">getNodeHandler</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.handleChildren">handleChildren</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.handleDoctests">handleDoctests</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.handleNode">handleNode</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.handleNodeDelete">handleNodeDelete</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.handleNodeLoad">handleNodeLoad</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.handleNodeStore">handleNodeStore</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.hasParent">hasParent</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.ignore">ignore</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.isDocstring">isDocstring</a></td> +<td>Determine if the given node is a docstring, as long as it is at the correct place in the node tree.</td> +</tr><tr> +<td><a href="#Checker.onFork">onFork</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.popScope">popScope</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.pushClassScope">pushClassScope</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.pushFunctionScope">pushFunctionScope</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.pushScope">pushScope</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.report">report</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.runDeferred">runDeferred</a></td> +<td>Run the callables in deferred using their associated scope stack.</td> +</tr><tr> +<td><a href="#Checker.runFunction">runFunction</a></td> +<td></td> +</tr><tr> +<td><a href="#Checker.scope">scope</a></td> +<td></td> +</tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<a NAME="Checker.__init__" ID="Checker.__init__"></a> +<h4>Checker (Constructor)</h4> +<b>Checker</b>(<i>tree, filename='(none)', builtins=None</i>) +<p> + Constructor +</p><dl> +<dt><i>tree</i></dt> +<dd> +parsed module tree or module source code +</dd><dt><i>filename</i></dt> +<dd> +name of the module file (string) +</dd><dt><i>builtins</i></dt> +<dd> +set of names to be treated as builtins (set of string) +</dd> +</dl><a NAME="Checker.ASSIGN" ID="Checker.ASSIGN"></a> +<h4>Checker.ASSIGN</h4> +<b>ASSIGN</b>(<i>node</i>) +<a NAME="Checker.AUGASSIGN" ID="Checker.AUGASSIGN"></a> +<h4>Checker.AUGASSIGN</h4> +<b>AUGASSIGN</b>(<i>node</i>) +<a NAME="Checker.CLASSDEF" ID="Checker.CLASSDEF"></a> +<h4>Checker.CLASSDEF</h4> +<b>CLASSDEF</b>(<i>node</i>) +<p> + Check names used in a class definition, including its decorators, base + classes, and the body of its definition. Additionally, add its name to + the current scope. +</p><a NAME="Checker.DICTCOMP" ID="Checker.DICTCOMP"></a> +<h4>Checker.DICTCOMP</h4> +<b>DICTCOMP</b>(<i>node</i>) +<a NAME="Checker.EXCEPTHANDLER" ID="Checker.EXCEPTHANDLER"></a> +<h4>Checker.EXCEPTHANDLER</h4> +<b>EXCEPTHANDLER</b>(<i>node</i>) +<a NAME="Checker.FOR" ID="Checker.FOR"></a> +<h4>Checker.FOR</h4> +<b>FOR</b>(<i>node</i>) +<p> + Process bindings for loop variables. +</p><a NAME="Checker.FUNCTIONDEF" ID="Checker.FUNCTIONDEF"></a> +<h4>Checker.FUNCTIONDEF</h4> +<b>FUNCTIONDEF</b>(<i>node</i>) +<a NAME="Checker.GENERATOREXP" ID="Checker.GENERATOREXP"></a> +<h4>Checker.GENERATOREXP</h4> +<b>GENERATOREXP</b>(<i>node</i>) +<a NAME="Checker.GLOBAL" ID="Checker.GLOBAL"></a> +<h4>Checker.GLOBAL</h4> +<b>GLOBAL</b>(<i>node</i>) +<p> + Keep track of globals declarations. +</p><a NAME="Checker.IMPORT" ID="Checker.IMPORT"></a> +<h4>Checker.IMPORT</h4> +<b>IMPORT</b>(<i>node</i>) +<a NAME="Checker.IMPORTFROM" ID="Checker.IMPORTFROM"></a> +<h4>Checker.IMPORTFROM</h4> +<b>IMPORTFROM</b>(<i>node</i>) +<a NAME="Checker.LAMBDA" ID="Checker.LAMBDA"></a> +<h4>Checker.LAMBDA</h4> +<b>LAMBDA</b>(<i>node</i>) +<a NAME="Checker.LISTCOMP" ID="Checker.LISTCOMP"></a> +<h4>Checker.LISTCOMP</h4> +<b>LISTCOMP</b>(<i>node</i>) +<a NAME="Checker.NAME" ID="Checker.NAME"></a> +<h4>Checker.NAME</h4> +<b>NAME</b>(<i>node</i>) +<p> + Handle occurrence of Name (which can be a load/store/delete access.) +</p><a NAME="Checker.TRY" ID="Checker.TRY"></a> +<h4>Checker.TRY</h4> +<b>TRY</b>(<i>node</i>) +<a NAME="Checker.addArgs" ID="Checker.addArgs"></a> +<h4>Checker.addArgs</h4> +<b>addArgs</b>(<i></i>) +<a NAME="Checker.addBinding" ID="Checker.addBinding"></a> +<h4>Checker.addBinding</h4> +<b>addBinding</b>(<i>node, value, reportRedef=True</i>) +<p> + Called when a binding is altered. +</p><p> + - `node` is the statement responsible for the change + - `value` is the optional new value, a Binding instance, associated + with the binding; if None, the binding is deleted if it exists. + - if `reportRedef` is True (default), rebinding while unused will be + reported. +</p><a NAME="Checker.checkDeadScopes" ID="Checker.checkDeadScopes"></a> +<h4>Checker.checkDeadScopes</h4> +<b>checkDeadScopes</b>(<i></i>) +<p> + Look at scopes which have been fully examined and report names in them + which were imported but unused. +</p><a NAME="Checker.checkUnusedAssignments" ID="Checker.checkUnusedAssignments"></a> +<h4>Checker.checkUnusedAssignments</h4> +<b>checkUnusedAssignments</b>(<i></i>) +<p> + Check to see if any assignments have not been used. +</p><a NAME="Checker.collectLoopVars" ID="Checker.collectLoopVars"></a> +<h4>Checker.collectLoopVars</h4> +<b>collectLoopVars</b>(<i></i>) +<a NAME="Checker.deferAssignment" ID="Checker.deferAssignment"></a> +<h4>Checker.deferAssignment</h4> +<b>deferAssignment</b>(<i>callable</i>) +<p> + Schedule an assignment handler to be called just after deferred + function handlers. +</p><a NAME="Checker.deferFunction" ID="Checker.deferFunction"></a> +<h4>Checker.deferFunction</h4> +<b>deferFunction</b>(<i>callable</i>) +<p> + Schedule a function handler to be called just before completion. +</p><p> + This is used for handling function bodies, which must be deferred + because code later in the file might modify the global scope. When + `callable` is called, the scope at the time this is called will be + restored, however it will contain any new bindings added to it. +</p><a NAME="Checker.descendantOf" ID="Checker.descendantOf"></a> +<h4>Checker.descendantOf</h4> +<b>descendantOf</b>(<i>node, ancestors, stop=None</i>) +<a NAME="Checker.differentForks" ID="Checker.differentForks"></a> +<h4>Checker.differentForks</h4> +<b>differentForks</b>(<i>lnode, rnode</i>) +<p> +True, if lnode and rnode are located on different forks of IF/TRY +</p><a NAME="Checker.getCommonAncestor" ID="Checker.getCommonAncestor"></a> +<h4>Checker.getCommonAncestor</h4> +<b>getCommonAncestor</b>(<i>lnode, rnode, stop=None</i>) +<a NAME="Checker.getDocstring" ID="Checker.getDocstring"></a> +<h4>Checker.getDocstring</h4> +<b>getDocstring</b>(<i>node</i>) +<a NAME="Checker.getNodeHandler" ID="Checker.getNodeHandler"></a> +<h4>Checker.getNodeHandler</h4> +<b>getNodeHandler</b>(<i>node_class</i>) +<a NAME="Checker.handleChildren" ID="Checker.handleChildren"></a> +<h4>Checker.handleChildren</h4> +<b>handleChildren</b>(<i>tree</i>) +<a NAME="Checker.handleDoctests" ID="Checker.handleDoctests"></a> +<h4>Checker.handleDoctests</h4> +<b>handleDoctests</b>(<i>node</i>) +<a NAME="Checker.handleNode" ID="Checker.handleNode"></a> +<h4>Checker.handleNode</h4> +<b>handleNode</b>(<i>node, parent</i>) +<a NAME="Checker.handleNodeDelete" ID="Checker.handleNodeDelete"></a> +<h4>Checker.handleNodeDelete</h4> +<b>handleNodeDelete</b>(<i>node</i>) +<a NAME="Checker.handleNodeLoad" ID="Checker.handleNodeLoad"></a> +<h4>Checker.handleNodeLoad</h4> +<b>handleNodeLoad</b>(<i>node</i>) +<a NAME="Checker.handleNodeStore" ID="Checker.handleNodeStore"></a> +<h4>Checker.handleNodeStore</h4> +<b>handleNodeStore</b>(<i>node</i>) +<a NAME="Checker.hasParent" ID="Checker.hasParent"></a> +<h4>Checker.hasParent</h4> +<b>hasParent</b>(<i>node, kind</i>) +<a NAME="Checker.ignore" ID="Checker.ignore"></a> +<h4>Checker.ignore</h4> +<b>ignore</b>(<i>node</i>) +<a NAME="Checker.isDocstring" ID="Checker.isDocstring"></a> +<h4>Checker.isDocstring</h4> +<b>isDocstring</b>(<i>node</i>) +<p> + Determine if the given node is a docstring, as long as it is at the + correct place in the node tree. +</p><a NAME="Checker.onFork" ID="Checker.onFork"></a> +<h4>Checker.onFork</h4> +<b>onFork</b>(<i>parent, lnode, rnode, items</i>) +<a NAME="Checker.popScope" ID="Checker.popScope"></a> +<h4>Checker.popScope</h4> +<b>popScope</b>(<i></i>) +<a NAME="Checker.pushClassScope" ID="Checker.pushClassScope"></a> +<h4>Checker.pushClassScope</h4> +<b>pushClassScope</b>(<i></i>) +<a NAME="Checker.pushFunctionScope" ID="Checker.pushFunctionScope"></a> +<h4>Checker.pushFunctionScope</h4> +<b>pushFunctionScope</b>(<i></i>) +<a NAME="Checker.pushScope" ID="Checker.pushScope"></a> +<h4>Checker.pushScope</h4> +<b>pushScope</b>(<i>scopeClass=FunctionScope</i>) +<a NAME="Checker.report" ID="Checker.report"></a> +<h4>Checker.report</h4> +<b>report</b>(<i>messageClass, *args, **kwargs</i>) +<a NAME="Checker.runDeferred" ID="Checker.runDeferred"></a> +<h4>Checker.runDeferred</h4> +<b>runDeferred</b>(<i>deferred</i>) +<p> + Run the callables in deferred using their associated scope stack. +</p><a NAME="Checker.runFunction" ID="Checker.runFunction"></a> +<h4>Checker.runFunction</h4> +<b>runFunction</b>(<i></i>) +<a NAME="Checker.scope" ID="Checker.scope"></a> +<h4>Checker.scope</h4> +<b>scope</b>(<i></i>) + +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="ClassDefinition" ID="ClassDefinition"></a> +<h2>ClassDefinition</h2> +<p> + Represents a class definition. +</p> +<h3>Derived from</h3> +Definition +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> + +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="ClassScope" ID="ClassScope"></a> +<h2>ClassScope</h2> +<p> + Class representing a name scope for a class. +</p> +<h3>Derived from</h3> +Scope +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> + +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="Definition" ID="Definition"></a> +<h2>Definition</h2> +<p> + A binding that defines a function or a class. +</p> +<h3>Derived from</h3> +Binding +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> + +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="ExportBinding" ID="ExportBinding"></a> +<h2>ExportBinding</h2> +<p> + A binding created by an __all__ assignment. If the names in the list + can be determined statically, they will be treated as names for export and + additional checking applied to them. +</p><p> + The only __all__ assignment that can be recognized is one which takes + the value of a literal list containing literal strings. For example:: +</p><p> + __all__ = ["foo", "bar"] +</p><p> + Names which are imported and not otherwise used but appear in the value of + __all__ will not have an unused import warning reported for them. +</p> +<h3>Derived from</h3> +Binding +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> + +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="FunctionDefinition" ID="FunctionDefinition"></a> +<h2>FunctionDefinition</h2> +<p> + Represents a function definition. +</p> +<h3>Derived from</h3> +Definition +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> + +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="FunctionScope" ID="FunctionScope"></a> +<h2>FunctionScope</h2> +<p> + Class representing a name scope for a function. +</p> +<h3>Derived from</h3> +Scope +<h3>Class Attributes</h3> +<table> +<tr><td>alwaysUsed</td></tr><tr><td>usesLocals</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> + +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="GeneratorScope" ID="GeneratorScope"></a> +<h2>GeneratorScope</h2> +<p> + Class representing a name scope for a generator function. +</p> +<h3>Derived from</h3> +Scope +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> + +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="Importation" ID="Importation"></a> +<h2>Importation</h2> +<p> + A binding created by an import statement. +</p> +<h3>Derived from</h3> +Binding +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> + +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="ModuleScope" ID="ModuleScope"></a> +<h2>ModuleScope</h2> +<p> + Class representing a name scope for a module. +</p> +<h3>Derived from</h3> +Scope +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> + +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="Scope" ID="Scope"></a> +<h2>Scope</h2> +<p> + Class defining the scope base class. +</p> +<h3>Derived from</h3> +dict +<h3>Class Attributes</h3> +<table> +<tr><td>importStarred</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> + +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="__init__" ID="__init__"></a> +<h2>__init__</h2> +<b>__init__</b>(<i>self, name, source</i>) + +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="__init___1" ID="__init___1"></a> +<h2>__init__</h2> +<b>__init__</b>(<i>self, name, source</i>) + +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="__init___2" ID="__init___2"></a> +<h2>__init__</h2> +<b>__init__</b>(<i>self</i>) + +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="__repr__" ID="__repr__"></a> +<h2>__repr__</h2> +<b>__repr__</b>(<i>self</i>) + +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="__repr___1" ID="__repr___1"></a> +<h2>__repr__</h2> +<b>__repr__</b>(<i>self</i>) + +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="__str__" ID="__str__"></a> +<h2>__str__</h2> +<b>__str__</b>(<i>self</i>) + +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="getNodeName" ID="getNodeName"></a> +<h2>getNodeName</h2> +<b>getNodeName</b>(<i>node</i>) +<p> + Module function for getting the name of a node. +</p> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="getNodeType" ID="getNodeType"></a> +<h2>getNodeType</h2> +<b>getNodeType</b>(<i>node_class</i>) + +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="getNodeType_1" ID="getNodeType_1"></a> +<h2>getNodeType</h2> +<b>getNodeType</b>(<i>node_class</i>) + +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="iter_child_nodes" ID="iter_child_nodes"></a> +<h2>iter_child_nodes</h2> +<b>iter_child_nodes</b>(<i>node</i>) +<p> + Yield all direct child nodes of *node*, that is, all fields that + are nodes and all items of fields that are lists of nodes. +</p> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="names" ID="names"></a> +<h2>names</h2> +<b>names</b>(<i>self</i>) +<p> + Return a list of the names referenced by this binding. +</p> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="unusedAssignments" ID="unusedAssignments"></a> +<h2>unusedAssignments</h2> +<b>unusedAssignments</b>(<i>self</i>) +<p> + Return a generator for the assignments which have not been used. +</p> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/eric5.UtilitiesPython2.pyflakes.messages.html Sat Feb 01 16:29:24 2014 +0100 @@ -0,0 +1,756 @@ +<!DOCTYPE html> +<html><head> +<title>eric5.UtilitiesPython2.pyflakes.messages</title> +<meta charset="UTF-8"> +<style> +body { + background: #EDECE6; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #85774A; } +h2 { color: white; background: #85774A; } +h3 { color: white; background: #9D936E; } +h4 { color: white; background: #9D936E; } + +a { color: #BA6D36; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>eric5.UtilitiesPython2.pyflakes.messages</h1> +<p> +Module implementing the messages for pyflakes. +</p><p> +Note: This is a copy of the identical module contained in Utilities.pyflakes. +It is here to make it accessible to the external Python 2 process. +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#DoctestSyntaxError">DoctestSyntaxError</a></td> +<td>Class defining the "Doctest syntax Error" message.</td> +</tr><tr> +<td><a href="#DuplicateArgument">DuplicateArgument</a></td> +<td>Class defining the "Duplicate Argument" message.</td> +</tr><tr> +<td><a href="#ImportShadowedByLoopVar">ImportShadowedByLoopVar</a></td> +<td>Class defining the "Import Shadowed By Loop Var" message.</td> +</tr><tr> +<td><a href="#ImportStarUsed">ImportStarUsed</a></td> +<td>Class defining the "Import Star Used" message.</td> +</tr><tr> +<td><a href="#LateFutureImport">LateFutureImport</a></td> +<td>Class defining the "Late Future Import" message.</td> +</tr><tr> +<td><a href="#Message">Message</a></td> +<td>Class defining the base for all specific message classes.</td> +</tr><tr> +<td><a href="#Redefined">Redefined</a></td> +<td>Class defining the "Redefined" message.</td> +</tr><tr> +<td><a href="#RedefinedInListComp">RedefinedInListComp</a></td> +<td>Class defining the "Redefined In List Comprehension" message.</td> +</tr><tr> +<td><a href="#RedefinedWhileUnused">RedefinedWhileUnused</a></td> +<td>Class defining the "Redefined While Unused" message.</td> +</tr><tr> +<td><a href="#UndefinedExport">UndefinedExport</a></td> +<td>Class defining the "Undefined Export" message.</td> +</tr><tr> +<td><a href="#UndefinedLocal">UndefinedLocal</a></td> +<td>Class defining the "Undefined Local Variable" message.</td> +</tr><tr> +<td><a href="#UndefinedName">UndefinedName</a></td> +<td>Class defining the "Undefined Name" message.</td> +</tr><tr> +<td><a href="#UnusedImport">UnusedImport</a></td> +<td>Class defining the "Unused Import" message.</td> +</tr><tr> +<td><a href="#UnusedVariable">UnusedVariable</a></td> +<td>Class defining the "Unused Variable" message.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr><td>None</td></tr> +</table> +<hr /><hr /> +<a NAME="DoctestSyntaxError" ID="DoctestSyntaxError"></a> +<h2>DoctestSyntaxError</h2> +<p> + Class defining the "Doctest syntax Error" message. +</p> +<h3>Derived from</h3> +Message +<h3>Class Attributes</h3> +<table> +<tr><td>message</td></tr><tr><td>message_id</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#DoctestSyntaxError.__init__">DoctestSyntaxError</a></td> +<td>Constructor</td> +</tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<a NAME="DoctestSyntaxError.__init__" ID="DoctestSyntaxError.__init__"></a> +<h4>DoctestSyntaxError (Constructor)</h4> +<b>DoctestSyntaxError</b>(<i>filename, loc, position=None</i>) +<p> + Constructor +</p><dl> +<dt><i>filename</i></dt> +<dd> +name of the file (string) +</dd><dt><i>loc</i></dt> +<dd> +location of the issue +</dd><dt><i>position</i></dt> +<dd> +position of the syntax error +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="DuplicateArgument" ID="DuplicateArgument"></a> +<h2>DuplicateArgument</h2> +<p> + Class defining the "Duplicate Argument" message. +</p> +<h3>Derived from</h3> +Message +<h3>Class Attributes</h3> +<table> +<tr><td>message</td></tr><tr><td>message_id</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#DuplicateArgument.__init__">DuplicateArgument</a></td> +<td>Constructor</td> +</tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<a NAME="DuplicateArgument.__init__" ID="DuplicateArgument.__init__"></a> +<h4>DuplicateArgument (Constructor)</h4> +<b>DuplicateArgument</b>(<i>filename, loc, name</i>) +<p> + Constructor +</p><dl> +<dt><i>filename</i></dt> +<dd> +name of the file (string) +</dd><dt><i>loc</i></dt> +<dd> +location of the issue +</dd><dt><i>name</i></dt> +<dd> +name of the duplicate argument (string) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="ImportShadowedByLoopVar" ID="ImportShadowedByLoopVar"></a> +<h2>ImportShadowedByLoopVar</h2> +<p> + Class defining the "Import Shadowed By Loop Var" message. +</p> +<h3>Derived from</h3> +Message +<h3>Class Attributes</h3> +<table> +<tr><td>message</td></tr><tr><td>message_id</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#ImportShadowedByLoopVar.__init__">ImportShadowedByLoopVar</a></td> +<td>Constructor</td> +</tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<a NAME="ImportShadowedByLoopVar.__init__" ID="ImportShadowedByLoopVar.__init__"></a> +<h4>ImportShadowedByLoopVar (Constructor)</h4> +<b>ImportShadowedByLoopVar</b>(<i>filename, loc, name, orig_loc</i>) +<p> + Constructor +</p><dl> +<dt><i>filename</i></dt> +<dd> +name of the file (string) +</dd><dt><i>loc</i></dt> +<dd> +location of the issue +</dd><dt><i>name</i></dt> +<dd> +name of the shadowed import (string) +</dd><dt><i>orig_loc</i></dt> +<dd> +location of the import +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="ImportStarUsed" ID="ImportStarUsed"></a> +<h2>ImportStarUsed</h2> +<p> + Class defining the "Import Star Used" message. +</p> +<h3>Derived from</h3> +Message +<h3>Class Attributes</h3> +<table> +<tr><td>message</td></tr><tr><td>message_id</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#ImportStarUsed.__init__">ImportStarUsed</a></td> +<td>Constructor</td> +</tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<a NAME="ImportStarUsed.__init__" ID="ImportStarUsed.__init__"></a> +<h4>ImportStarUsed (Constructor)</h4> +<b>ImportStarUsed</b>(<i>filename, loc, modname</i>) +<p> + Constructor +</p><dl> +<dt><i>filename</i></dt> +<dd> +name of the file (string) +</dd><dt><i>loc</i></dt> +<dd> +location of the issue +</dd><dt><i>modname</i></dt> +<dd> +name of the module imported using star import (string) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="LateFutureImport" ID="LateFutureImport"></a> +<h2>LateFutureImport</h2> +<p> + Class defining the "Late Future Import" message. +</p> +<h3>Derived from</h3> +Message +<h3>Class Attributes</h3> +<table> +<tr><td>message</td></tr><tr><td>message_id</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#LateFutureImport.__init__">LateFutureImport</a></td> +<td>Constructor</td> +</tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<a NAME="LateFutureImport.__init__" ID="LateFutureImport.__init__"></a> +<h4>LateFutureImport (Constructor)</h4> +<b>LateFutureImport</b>(<i>filename, loc, names</i>) +<p> + Constructor +</p><dl> +<dt><i>filename</i></dt> +<dd> +name of the file (string) +</dd><dt><i>loc</i></dt> +<dd> +location of the issue +</dd><dt><i>names</i></dt> +<dd> +names of the imported futures (string) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="Message" ID="Message"></a> +<h2>Message</h2> +<p> + Class defining the base for all specific message classes. +</p> +<h3>Derived from</h3> +object +<h3>Class Attributes</h3> +<table> +<tr><td>message</td></tr><tr><td>message_args</td></tr><tr><td>message_id</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#Message.__init__">Message</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#Message.__str__">__str__</a></td> +<td>Special method return a string representation of the instance object.</td> +</tr><tr> +<td><a href="#Message.getMessageData">getMessageData</a></td> +<td>Public method to get the individual message data elements.</td> +</tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<a NAME="Message.__init__" ID="Message.__init__"></a> +<h4>Message (Constructor)</h4> +<b>Message</b>(<i>filename, loc</i>) +<p> + Constructor +</p><dl> +<dt><i>filename</i></dt> +<dd> +name of the file (string) +</dd><dt><i>loc</i></dt> +<dd> +location of the issue +</dd> +</dl><a NAME="Message.__str__" ID="Message.__str__"></a> +<h4>Message.__str__</h4> +<b>__str__</b>(<i></i>) +<p> + Special method return a string representation of the instance object. +</p><dl> +<dt>Returns:</dt> +<dd> +string representation of the object (string) +</dd> +</dl><a NAME="Message.getMessageData" ID="Message.getMessageData"></a> +<h4>Message.getMessageData</h4> +<b>getMessageData</b>(<i></i>) +<p> + Public method to get the individual message data elements. +</p><dl> +<dt>Returns:</dt> +<dd> +tuple containing file name, line number, message ID and + message arguments (string, integer, string, list) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="Redefined" ID="Redefined"></a> +<h2>Redefined</h2> +<p> + Class defining the "Redefined" message. +</p> +<h3>Derived from</h3> +Message +<h3>Class Attributes</h3> +<table> +<tr><td>message</td></tr><tr><td>message_id</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#Redefined.__init__">Redefined</a></td> +<td>Constructor</td> +</tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<a NAME="Redefined.__init__" ID="Redefined.__init__"></a> +<h4>Redefined (Constructor)</h4> +<b>Redefined</b>(<i>filename, loc, name, orig_loc</i>) +<p> + Constructor +</p><dl> +<dt><i>filename</i></dt> +<dd> +name of the file (string) +</dd><dt><i>loc</i></dt> +<dd> +location of the issue +</dd><dt><i>name</i></dt> +<dd> +name of the redefined function (string) +</dd><dt><i>orig_loc</i></dt> +<dd> +location of the original definition +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="RedefinedInListComp" ID="RedefinedInListComp"></a> +<h2>RedefinedInListComp</h2> +<p> + Class defining the "Redefined In List Comprehension" message. +</p> +<h3>Derived from</h3> +Message +<h3>Class Attributes</h3> +<table> +<tr><td>message</td></tr><tr><td>message_id</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#RedefinedInListComp.__init__">RedefinedInListComp</a></td> +<td>Constructor</td> +</tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<a NAME="RedefinedInListComp.__init__" ID="RedefinedInListComp.__init__"></a> +<h4>RedefinedInListComp (Constructor)</h4> +<b>RedefinedInListComp</b>(<i>filename, loc, name, orig_loc</i>) +<p> + Constructor +</p><dl> +<dt><i>filename</i></dt> +<dd> +name of the file (string) +</dd><dt><i>loc</i></dt> +<dd> +location of the issue +</dd><dt><i>name</i></dt> +<dd> +name of the redefined object (string) +</dd><dt><i>orig_loc</i></dt> +<dd> +location of the original definition +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="RedefinedWhileUnused" ID="RedefinedWhileUnused"></a> +<h2>RedefinedWhileUnused</h2> +<p> + Class defining the "Redefined While Unused" message. +</p> +<h3>Derived from</h3> +Message +<h3>Class Attributes</h3> +<table> +<tr><td>message</td></tr><tr><td>message_id</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#RedefinedWhileUnused.__init__">RedefinedWhileUnused</a></td> +<td>Constructor</td> +</tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<a NAME="RedefinedWhileUnused.__init__" ID="RedefinedWhileUnused.__init__"></a> +<h4>RedefinedWhileUnused (Constructor)</h4> +<b>RedefinedWhileUnused</b>(<i>filename, loc, name, orig_loc</i>) +<p> + Constructor +</p><dl> +<dt><i>filename</i></dt> +<dd> +name of the file (string) +</dd><dt><i>loc</i></dt> +<dd> +location of the issue +</dd><dt><i>name</i></dt> +<dd> +name of the redefined object (string) +</dd><dt><i>orig_loc</i></dt> +<dd> +location of the original definition +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="UndefinedExport" ID="UndefinedExport"></a> +<h2>UndefinedExport</h2> +<p> + Class defining the "Undefined Export" message. +</p> +<h3>Derived from</h3> +Message +<h3>Class Attributes</h3> +<table> +<tr><td>message</td></tr><tr><td>message_id</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#UndefinedExport.__init__">UndefinedExport</a></td> +<td>Constructor</td> +</tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<a NAME="UndefinedExport.__init__" ID="UndefinedExport.__init__"></a> +<h4>UndefinedExport (Constructor)</h4> +<b>UndefinedExport</b>(<i>filename, loc, name</i>) +<p> + Constructor +</p><dl> +<dt><i>filename</i></dt> +<dd> +name of the file (string) +</dd><dt><i>loc</i></dt> +<dd> +location of the issue +</dd><dt><i>name</i></dt> +<dd> +undefined exported name (string) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="UndefinedLocal" ID="UndefinedLocal"></a> +<h2>UndefinedLocal</h2> +<p> + Class defining the "Undefined Local Variable" message. +</p> +<h3>Derived from</h3> +Message +<h3>Class Attributes</h3> +<table> +<tr><td>message</td></tr><tr><td>message_id</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#UndefinedLocal.__init__">UndefinedLocal</a></td> +<td>Constructor</td> +</tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<a NAME="UndefinedLocal.__init__" ID="UndefinedLocal.__init__"></a> +<h4>UndefinedLocal (Constructor)</h4> +<b>UndefinedLocal</b>(<i>filename, loc, name, orig_loc</i>) +<p> + Constructor +</p><dl> +<dt><i>filename</i></dt> +<dd> +name of the file (string) +</dd><dt><i>loc</i></dt> +<dd> +location of the issue +</dd><dt><i>name</i></dt> +<dd> +name of the prematurely referenced variable (string) +</dd><dt><i>orig_loc</i></dt> +<dd> +location of the variable definition +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="UndefinedName" ID="UndefinedName"></a> +<h2>UndefinedName</h2> +<p> + Class defining the "Undefined Name" message. +</p> +<h3>Derived from</h3> +Message +<h3>Class Attributes</h3> +<table> +<tr><td>message</td></tr><tr><td>message_id</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#UndefinedName.__init__">UndefinedName</a></td> +<td>Constructor</td> +</tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<a NAME="UndefinedName.__init__" ID="UndefinedName.__init__"></a> +<h4>UndefinedName (Constructor)</h4> +<b>UndefinedName</b>(<i>filename, loc, name</i>) +<p> + Constructor +</p><dl> +<dt><i>filename</i></dt> +<dd> +name of the file (string) +</dd><dt><i>loc</i></dt> +<dd> +location of the issue +</dd><dt><i>name</i></dt> +<dd> +undefined name (string) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="UnusedImport" ID="UnusedImport"></a> +<h2>UnusedImport</h2> +<p> + Class defining the "Unused Import" message. +</p> +<h3>Derived from</h3> +Message +<h3>Class Attributes</h3> +<table> +<tr><td>message</td></tr><tr><td>message_id</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#UnusedImport.__init__">UnusedImport</a></td> +<td>Constructor</td> +</tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<a NAME="UnusedImport.__init__" ID="UnusedImport.__init__"></a> +<h4>UnusedImport (Constructor)</h4> +<b>UnusedImport</b>(<i>filename, loc, name</i>) +<p> + Constructor +</p><dl> +<dt><i>filename</i></dt> +<dd> +name of the file (string) +</dd><dt><i>loc</i></dt> +<dd> +location of the issue +</dd><dt><i>name</i></dt> +<dd> +name of the unused import (string) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="UnusedVariable" ID="UnusedVariable"></a> +<h2>UnusedVariable</h2> +<p> + Class defining the "Unused Variable" message. +</p><p> + Indicates that a variable has been explicitly assigned to but not actually + used. +</p> +<h3>Derived from</h3> +Message +<h3>Class Attributes</h3> +<table> +<tr><td>message</td></tr><tr><td>message_id</td></tr> +</table> +<h3>Class Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#UnusedVariable.__init__">UnusedVariable</a></td> +<td>Constructor</td> +</tr> +</table> +<h3>Static Methods</h3> +<table> +<tr><td>None</td></tr> +</table> +<a NAME="UnusedVariable.__init__" ID="UnusedVariable.__init__"></a> +<h4>UnusedVariable (Constructor)</h4> +<b>UnusedVariable</b>(<i>filename, loc, names</i>) +<p> + Constructor +</p><dl> +<dt><i>filename</i></dt> +<dd> +name of the file (string) +</dd><dt><i>loc</i></dt> +<dd> +location of the issue +</dd><dt><i>names</i></dt> +<dd> +names of unused variable (string) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- a/Documentation/Source/index-eric5.UtilitiesPython2.html Sat Feb 01 16:03:01 2014 +0100 +++ b/Documentation/Source/index-eric5.UtilitiesPython2.html Sat Feb 01 16:29:24 2014 +0100 @@ -27,7 +27,7 @@ <h3>Packages</h3> <table> <tr> -<td><a href="index-eric5.UtilitiesPython2.py2flakes.html">py2flakes</a></td> +<td><a href="index-eric5.UtilitiesPython2.pyflakes.html">pyflakes</a></td> <td>Package containing pyflakes adapted to eric5.</td> </tr> </table>
--- a/Documentation/Source/index-eric5.UtilitiesPython2.py2flakes.html Sat Feb 01 16:03:01 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,41 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric5.UtilitiesPython2.py2flakes</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body> -<h1>eric5.UtilitiesPython2.py2flakes</h1> -<p> -Package containing pyflakes adapted to eric5. -</p><p> -Note: This is a copy of the identical package contained in Utilities. -It is here to make it accessible to the external Python 2 process. -</p> - - -<h3>Modules</h3> -<table> -<tr> -<td><a href="eric5.UtilitiesPython2.py2flakes.checker.html">checker</a></td> -<td></td> -</tr><tr> -<td><a href="eric5.UtilitiesPython2.py2flakes.messages.html">messages</a></td> -<td>Module implementing the messages for pyflakes.</td> -</tr> -</table> -</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/index-eric5.UtilitiesPython2.pyflakes.html Sat Feb 01 16:29:24 2014 +0100 @@ -0,0 +1,41 @@ +<!DOCTYPE html> +<html><head> +<title>eric5.UtilitiesPython2.pyflakes</title> +<meta charset="UTF-8"> +<style> +body { + background: #EDECE6; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #85774A; } +h2 { color: white; background: #85774A; } +h3 { color: white; background: #9D936E; } +h4 { color: white; background: #9D936E; } + +a { color: #BA6D36; } + +</style> +</head> +<body> +<h1>eric5.UtilitiesPython2.pyflakes</h1> +<p> +Package containing pyflakes adapted to eric5. +</p><p> +Note: This is a copy of the identical package contained in Utilities. +It is here to make it accessible to the external Python 2 process. +</p> + + +<h3>Modules</h3> +<table> +<tr> +<td><a href="eric5.UtilitiesPython2.pyflakes.checker.html">checker</a></td> +<td></td> +</tr><tr> +<td><a href="eric5.UtilitiesPython2.pyflakes.messages.html">messages</a></td> +<td>Module implementing the messages for pyflakes.</td> +</tr> +</table> +</body></html> \ No newline at end of file
--- a/PluginManager/PluginRepositoryDialog.py Sat Feb 01 16:03:01 2014 +0100 +++ b/PluginManager/PluginRepositoryDialog.py Sat Feb 01 16:29:24 2014 +0100 @@ -640,7 +640,7 @@ """ itm = self.__selectedItems()[0] pluginName = (itm.data(0, PluginRepositoryWidget.FilenameRole) - .rsplit("-", 1)[0]) + .rsplit("-", 1)[0]) self.__updateHiddenPluginsList([pluginName]) def __hideSelectedPlugins(self): @@ -650,7 +650,7 @@ hideList = [] for itm in self.__selectedItems(): pluginName = (itm.data(0, PluginRepositoryWidget.FilenameRole) - .rsplit("-", 1)[0]) + .rsplit("-", 1)[0]) hideList.append(pluginName) self.__updateHiddenPluginsList(hideList)
--- a/Plugins/VcsPlugins/vcsMercurial/HgRepoConfigDataDialog.py Sat Feb 01 16:03:01 2014 +0100 +++ b/Plugins/VcsPlugins/vcsMercurial/HgRepoConfigDataDialog.py Sat Feb 01 16:29:24 2014 +0100 @@ -39,6 +39,8 @@ """ Private slot to switch the default password visibility of the default password. + + @param checked state of the push button (boolean) """ if checked: self.defaultPasswordEdit.setEchoMode(QLineEdit.Normal) @@ -50,6 +52,8 @@ """ Private slot to switch the default password visibility of the default push password. + + @param checked state of the push button (boolean) """ if checked: self.defaultPushPasswordEdit.setEchoMode(QLineEdit.Normal)
--- a/Plugins/VcsPlugins/vcsMercurial/HgUserConfigDataDialog.py Sat Feb 01 16:03:01 2014 +0100 +++ b/Plugins/VcsPlugins/vcsMercurial/HgUserConfigDataDialog.py Sat Feb 01 16:29:24 2014 +0100 @@ -17,6 +17,7 @@ """ Constructor + @param version Mercurial version info (tuple of two integers) @param parent reference to the parent widget (QWidget) """ super().__init__(parent)
--- a/UtilitiesPython2/Py2SyntaxChecker.py Sat Feb 01 16:03:01 2014 +0100 +++ b/UtilitiesPython2/Py2SyntaxChecker.py Sat Feb 01 16:29:24 2014 +0100 @@ -104,8 +104,8 @@ @return list of lists containing the warnings (marker, file name, line number, message) """ - from py2flakes.checker import Checker - from py2flakes.messages import ImportStarUsed + from pyflakes.checker import Checker + from pyflakes.messages import ImportStarUsed flakesWarnings = [] lines = codestring.splitlines()
--- a/UtilitiesPython2/py2flakes/__init__.py Sat Feb 01 16:03:01 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright (c) 2010 - 2014 Detlev Offenbach <detlev@die-offenbachs.de> -# - -""" -Package containing pyflakes adapted to eric5. - -Note: This is a copy of the identical package contained in Utilities. -It is here to make it accessible to the external Python 2 process. -""" - -__version__ = '0.7.3'
--- a/UtilitiesPython2/py2flakes/checker.py Sat Feb 01 16:03:01 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,875 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright (c) 2010 - 2014 Detlev Offenbach <detlev@die-offenbachs.de> -# -# Original (c) 2005-2010 Divmod, Inc. -# -# This module is based on pyflakes for Python2 and Python3, but was modified to -# be integrated into eric5 - -import doctest -import os -import sys -try: - builtin_vars = dir(__import__('builtins')) - PY2 = False - ## added for eric5 - basestring = str - ## end added for eric5 -except ImportError: - builtin_vars = dir(__import__('__builtin__')) - PY2 = True - -try: - import ast - iter_child_nodes = ast.iter_child_nodes -except ImportError: # Python 2.5 - import _ast as ast - - if 'decorator_list' not in ast.ClassDef._fields: - # Patch the missing attribute 'decorator_list' - ast.ClassDef.decorator_list = () - ast.FunctionDef.decorator_list = property(lambda s: s.decorators) - - def iter_child_nodes(node): - """ - Yield all direct child nodes of *node*, that is, all fields that - are nodes and all items of fields that are lists of nodes. - """ - for name in node._fields: - field = getattr(node, name, None) - if isinstance(field, ast.AST): - yield field - elif isinstance(field, list): - for item in field: - yield item -# Python >= 3.3 uses ast.Try instead of (ast.TryExcept + ast.TryFinally) -if hasattr(ast, 'Try'): - ast_TryExcept = ast.Try - ast_TryFinally = () -else: - ast_TryExcept = ast.TryExcept - ast_TryFinally = ast.TryFinally - -from . import messages - -if PY2: - def getNodeType(node_class): - # workaround str.upper() which is locale-dependent - return str(unicode(node_class.__name__).upper()) # __IGNORE_WARNING__ -else: - def getNodeType(node_class): - return node_class.__name__.upper() - - -class Binding(object): - """ - Represents the binding of a value to a name. - - The checker uses this to keep track of which names have been bound and - which names have not. See Assignment for a special type of binding that - is checked with stricter rules. - """ - def __init__(self, name, source): - self.name = name - self.source = source - self.used = False - - def __str__(self): - return self.name - - def __repr__(self): - return '<%s object %r from line %r at 0x%x>' % ( - self.__class__.__name__, - self.name, - self.source.lineno, - id(self)) - - -class Importation(Binding): - """ - A binding created by an import statement. - """ - def __init__(self, name, source): - self.fullName = name - name = name.split('.')[0] - super(Importation, self).__init__(name, source) - - -class Argument(Binding): - """ - Represents binding a name as an argument. - """ - pass - - -class Definition(Binding): - """ - A binding that defines a function or a class. - """ - pass - - -class Assignment(Binding): - """ - Represents binding a name with an explicit assignment. - - The checker will raise warnings for any Assignment that isn't used. Also, - the checker does not consider assignments in tuple/list unpacking to be - Assignments, rather it treats them as simple Bindings. - """ - pass - - -class FunctionDefinition(Definition): - """ - Represents a function definition. - """ - pass - - -class ClassDefinition(Definition): - """ - Represents a class definition. - """ - pass - - -class ExportBinding(Binding): - """ - A binding created by an __all__ assignment. If the names in the list - can be determined statically, they will be treated as names for export and - additional checking applied to them. - - The only __all__ assignment that can be recognized is one which takes - the value of a literal list containing literal strings. For example:: - - __all__ = ["foo", "bar"] - - Names which are imported and not otherwise used but appear in the value of - __all__ will not have an unused import warning reported for them. - """ - def names(self): - """ - Return a list of the names referenced by this binding. - """ - names = [] - if isinstance(self.source, ast.List): - for node in self.source.elts: - if isinstance(node, ast.Str): - names.append(node.s) - return names - - -class Scope(dict): - """ - Class defining the scope base class. - """ - importStarred = False # set to True when import * is found - - def __repr__(self): - scope_cls = self.__class__.__name__ - return '<%s at 0x%x %s>' % (scope_cls, id(self), dict.__repr__(self)) - - -class ClassScope(Scope): - """ - Class representing a name scope for a class. - """ - pass - - -class FunctionScope(Scope): - """ - Class representing a name scope for a function. - """ - usesLocals = False - alwaysUsed = set(['__tracebackhide__', - '__traceback_info__', '__traceback_supplement__']) - - def __init__(self): - super(FunctionScope, self).__init__() - # Simplify: manage the special locals as globals - self.globals = self.alwaysUsed.copy() - - def unusedAssignments(self): - """ - Return a generator for the assignments which have not been used. - """ - for name, binding in self.items(): - if (not binding.used and name not in self.globals - and not self.usesLocals - and isinstance(binding, Assignment)): - yield name, binding - - -class GeneratorScope(Scope): - """ - Class representing a name scope for a generator function. - """ - pass - - -class ModuleScope(Scope): - """ - Class representing a name scope for a module. - """ - pass - -# Globally defined names which are not attributes of the builtins module, or -# are only present on some platforms. -_MAGIC_GLOBALS = ['__file__', '__builtins__', 'WindowsError'] - - -def getNodeName(node): - """ - Module function for getting the name of a node. - """ - # Returns node.id, or node.name, or None - if hasattr(node, 'id'): # One of the many nodes with an id - return node.id - if hasattr(node, 'name'): # a ExceptHandler node - return node.name - - -class Checker(object): - """ - Class to check the cleanliness and sanity of Python code. - """ - nodeDepth = 0 - offset = None - traceTree = False - withDoctest = ('PYFLAKES_NODOCTEST' not in os.environ) - - builtIns = set(builtin_vars).union(_MAGIC_GLOBALS) - _customBuiltIns = os.environ.get('PYFLAKES_BUILTINS') - if _customBuiltIns: - builtIns.update(_customBuiltIns.split(',')) - del _customBuiltIns - - def __init__(self, tree, filename='(none)', builtins=None): - """ - Constructor - - @param tree parsed module tree or module source code - @param filename name of the module file (string) - @param builtins set of names to be treated as builtins (set of string) - """ - self._nodeHandlers = {} - self._deferredFunctions = [] - self._deferredAssignments = [] - self.deadScopes = [] - self.messages = [] - self.filename = filename - if builtins: - self.builtIns = self.builtIns.union(builtins) - self.scopeStack = [ModuleScope()] - self.exceptHandlers = [()] - self.futuresAllowed = True - - ## added for eric5 - if isinstance(tree, basestring): - tree = compile(tree, filename, "exec", ast.PyCF_ONLY_AST) - ## end added for eric5 - - self.root = tree - self.handleChildren(tree) - self.runDeferred(self._deferredFunctions) - # Set _deferredFunctions to None so that deferFunction will fail - # noisily if called after we've run through the deferred functions. - self._deferredFunctions = None - self.runDeferred(self._deferredAssignments) - # Set _deferredAssignments to None so that deferAssignment will fail - # noisily if called after we've run through the deferred assignments. - self._deferredAssignments = None - del self.scopeStack[1:] - self.popScope() - self.checkDeadScopes() - - def deferFunction(self, callable): - ''' - Schedule a function handler to be called just before completion. - - This is used for handling function bodies, which must be deferred - because code later in the file might modify the global scope. When - `callable` is called, the scope at the time this is called will be - restored, however it will contain any new bindings added to it. - ''' - self._deferredFunctions.append((callable, self.scopeStack[:], - self.offset)) - - def deferAssignment(self, callable): - """ - Schedule an assignment handler to be called just after deferred - function handlers. - """ - self._deferredAssignments.append((callable, self.scopeStack[:], - self.offset)) - - def runDeferred(self, deferred): - """ - Run the callables in deferred using their associated scope stack. - """ - for handler, scope, offset in deferred: - self.scopeStack = scope - self.offset = offset - handler() - - @property - def scope(self): - return self.scopeStack[-1] - - def popScope(self): - self.deadScopes.append(self.scopeStack.pop()) - - def checkDeadScopes(self): - """ - Look at scopes which have been fully examined and report names in them - which were imported but unused. - """ - for scope in self.deadScopes: - export = isinstance(scope.get('__all__'), ExportBinding) - if export: - all = scope['__all__'].names() - if not scope.importStarred and \ - os.path.basename(self.filename) != '__init__.py': - # Look for possible mistakes in the export list - undefined = set(all) - set(scope) - for name in undefined: - self.report(messages.UndefinedExport, - scope['__all__'].source, name) - else: - all = [] - - # Look for imported names that aren't used. - for importation in scope.values(): - if isinstance(importation, Importation): - if not importation.used and importation.name not in all: - self.report(messages.UnusedImport, - importation.source, importation.name) - - def pushScope(self, scopeClass=FunctionScope): - self.scopeStack.append(scopeClass()) - - def pushFunctionScope(self): # XXX Deprecated - self.pushScope(FunctionScope) - - def pushClassScope(self): # XXX Deprecated - self.pushScope(ClassScope) - - def report(self, messageClass, *args, **kwargs): - self.messages.append(messageClass(self.filename, *args, **kwargs)) - - def hasParent(self, node, kind): - while hasattr(node, 'parent'): - node = node.parent - if isinstance(node, kind): - return True - - def getCommonAncestor(self, lnode, rnode, stop=None): - if not stop: - stop = self.root - if lnode is rnode: - return lnode - if stop in (lnode, rnode): - return stop - - if not hasattr(lnode, 'parent') or not hasattr(rnode, 'parent'): - return - if (lnode.level > rnode.level): - return self.getCommonAncestor(lnode.parent, rnode, stop) - if (rnode.level > lnode.level): - return self.getCommonAncestor(lnode, rnode.parent, stop) - return self.getCommonAncestor(lnode.parent, rnode.parent, stop) - - def descendantOf(self, node, ancestors, stop=None): - for a in ancestors: - if self.getCommonAncestor(node, a, stop) not in (stop, None): - return True - return False - - def onFork(self, parent, lnode, rnode, items): - return (self.descendantOf(lnode, items, parent) ^ - self.descendantOf(rnode, items, parent)) - - def differentForks(self, lnode, rnode): - """True, if lnode and rnode are located on different forks of IF/TRY""" - ancestor = self.getCommonAncestor(lnode, rnode) - if isinstance(ancestor, ast.If): - for fork in (ancestor.body, ancestor.orelse): - if self.onFork(ancestor, lnode, rnode, fork): - return True - elif isinstance(ancestor, ast_TryExcept): - body = ancestor.body + ancestor.orelse - for fork in [body] + [[hdl] for hdl in ancestor.handlers]: - if self.onFork(ancestor, lnode, rnode, fork): - return True - elif isinstance(ancestor, ast_TryFinally): - if self.onFork(ancestor, lnode, rnode, ancestor.body): - return True - return False - - def addBinding(self, node, value, reportRedef=True): - """ - Called when a binding is altered. - - - `node` is the statement responsible for the change - - `value` is the optional new value, a Binding instance, associated - with the binding; if None, the binding is deleted if it exists. - - if `reportRedef` is True (default), rebinding while unused will be - reported. - """ - redefinedWhileUnused = False - if not isinstance(self.scope, ClassScope): - for scope in self.scopeStack[::-1]: - existing = scope.get(value.name) - if (isinstance(existing, Importation) - and not existing.used - and (not isinstance(value, Importation) or - value.fullName == existing.fullName) - and reportRedef - and not self.differentForks(node, existing.source)): - redefinedWhileUnused = True - self.report(messages.RedefinedWhileUnused, - node, value.name, existing.source) - - existing = self.scope.get(value.name) - if not redefinedWhileUnused and self.hasParent(value.source, ast.ListComp): - if (existing and reportRedef - and not self.hasParent(existing.source, (ast.For, ast.ListComp)) - and not self.differentForks(node, existing.source)): - self.report(messages.RedefinedInListComp, - node, value.name, existing.source) - - if (isinstance(existing, Definition) - and not existing.used - and not self.differentForks(node, existing.source)): - self.report(messages.RedefinedWhileUnused, - node, value.name, existing.source) - else: - self.scope[value.name] = value - - def getNodeHandler(self, node_class): - try: - return self._nodeHandlers[node_class] - except KeyError: - nodeType = getNodeType(node_class) - self._nodeHandlers[node_class] = handler = getattr(self, nodeType) - return handler - - def handleNodeLoad(self, node): - name = getNodeName(node) - if not name: - return - # try local scope - try: - self.scope[name].used = (self.scope, node) - except KeyError: - pass - else: - return - - scopes = [scope for scope in self.scopeStack[:-1] - if isinstance(scope, (FunctionScope, ModuleScope))] - if isinstance(self.scope, GeneratorScope) and scopes[-1] != self.scopeStack[-2]: - scopes.append(self.scopeStack[-2]) - - # try enclosing function scopes and global scope - importStarred = self.scope.importStarred - for scope in reversed(scopes): - importStarred = importStarred or scope.importStarred - try: - scope[name].used = (self.scope, node) - except KeyError: - pass - else: - return - - # look in the built-ins - if importStarred or name in self.builtIns: - return - if name == '__path__' and os.path.basename(self.filename) == '__init__.py': - # the special name __path__ is valid only in packages - return - - # protected with a NameError handler? - if 'NameError' not in self.exceptHandlers[-1]: - self.report(messages.UndefinedName, node, name) - - def handleNodeStore(self, node): - name = getNodeName(node) - if not name: - return - # if the name hasn't already been defined in the current scope - if isinstance(self.scope, FunctionScope) and name not in self.scope: - # for each function or module scope above us - for scope in self.scopeStack[:-1]: - if not isinstance(scope, (FunctionScope, ModuleScope)): - continue - # if the name was defined in that scope, and the name has - # been accessed already in the current scope, and hasn't - # been declared global - used = name in scope and scope[name].used - if used and used[0] is self.scope and name not in self.scope.globals: - # then it's probably a mistake - self.report(messages.UndefinedLocal, - scope[name].used[1], name, scope[name].source) - break - - parent = getattr(node, 'parent', None) - if isinstance(parent, (ast.For, ast.comprehension, ast.Tuple, ast.List)): - binding = Binding(name, node) - elif (parent is not None and name == '__all__' and - isinstance(self.scope, ModuleScope)): - binding = ExportBinding(name, parent.value) - else: - binding = Assignment(name, node) - if name in self.scope: - binding.used = self.scope[name].used - self.addBinding(node, binding) - - def handleNodeDelete(self, node): - name = getNodeName(node) - if not name: - return - if isinstance(self.scope, FunctionScope) and name in self.scope.globals: - self.scope.globals.remove(name) - else: - try: - del self.scope[name] - except KeyError: - self.report(messages.UndefinedName, node, name) - - def handleChildren(self, tree): - for node in iter_child_nodes(tree): - self.handleNode(node, tree) - - def isDocstring(self, node): - """ - Determine if the given node is a docstring, as long as it is at the - correct place in the node tree. - """ - return isinstance(node, ast.Str) or (isinstance(node, ast.Expr) and - isinstance(node.value, ast.Str)) - - def getDocstring(self, node): - if isinstance(node, ast.Expr): - node = node.value - if not isinstance(node, ast.Str): - return (None, None) - # Computed incorrectly if the docstring has backslash - doctest_lineno = node.lineno - node.s.count('\n') - 1 - return (node.s, doctest_lineno) - - def handleNode(self, node, parent): - if node is None: - return - if self.offset and getattr(node, 'lineno', None) is not None: - node.lineno += self.offset[0] - node.col_offset += self.offset[1] - if self.traceTree: - print(' ' * self.nodeDepth + node.__class__.__name__) - if self.futuresAllowed and not (isinstance(node, ast.ImportFrom) or - self.isDocstring(node)): - self.futuresAllowed = False - self.nodeDepth += 1 - node.level = self.nodeDepth - node.parent = parent - try: - handler = self.getNodeHandler(node.__class__) - handler(node) - finally: - self.nodeDepth -= 1 - if self.traceTree: - print(' ' * self.nodeDepth + 'end ' + node.__class__.__name__) - - _getDoctestExamples = doctest.DocTestParser().get_examples - - def handleDoctests(self, node): - try: - docstring, node_lineno = self.getDocstring(node.body[0]) - if not docstring: - return - examples = self._getDoctestExamples(docstring) - except (ValueError, IndexError): - # e.g. line 6 of the docstring for <string> has inconsistent - # leading whitespace: ... - return - node_offset = self.offset or (0, 0) - self.pushScope() - for example in examples: - try: - tree = compile(example.source, "<doctest>", "exec", ast.PyCF_ONLY_AST) - except SyntaxError: - e = sys.exc_info()[1] - position = (node_lineno + example.lineno + e.lineno, - example.indent + 4 + e.offset) - self.report(messages.DoctestSyntaxError, node, position) - else: - self.offset = (node_offset[0] + node_lineno + example.lineno, - node_offset[1] + example.indent + 4) - self.handleChildren(tree) - self.offset = node_offset - self.popScope() - - def ignore(self, node): - pass - - # "stmt" type nodes - RETURN = DELETE = PRINT = WHILE = IF = WITH = WITHITEM = RAISE = \ - TRYFINALLY = ASSERT = EXEC = EXPR = handleChildren - - CONTINUE = BREAK = PASS = ignore - - # "expr" type nodes - BOOLOP = BINOP = UNARYOP = IFEXP = DICT = SET = YIELD = YIELDFROM = \ - COMPARE = CALL = REPR = ATTRIBUTE = SUBSCRIPT = LIST = TUPLE = \ - STARRED = handleChildren - - NUM = STR = BYTES = ELLIPSIS = ignore - - # "slice" type nodes - SLICE = EXTSLICE = INDEX = handleChildren - - # expression contexts are node instances too, though being constants - LOAD = STORE = DEL = AUGLOAD = AUGSTORE = PARAM = ignore - - # same for operators - AND = OR = ADD = SUB = MULT = DIV = MOD = POW = LSHIFT = RSHIFT = \ - BITOR = BITXOR = BITAND = FLOORDIV = INVERT = NOT = UADD = USUB = \ - EQ = NOTEQ = LT = LTE = GT = GTE = IS = ISNOT = IN = NOTIN = ignore - - # additional node types - COMPREHENSION = KEYWORD = handleChildren - - def GLOBAL(self, node): - """ - Keep track of globals declarations. - """ - if isinstance(self.scope, FunctionScope): - self.scope.globals.update(node.names) - - NONLOCAL = GLOBAL - - def LISTCOMP(self, node): - # handle generators before element - for gen in node.generators: - self.handleNode(gen, node) - self.handleNode(node.elt, node) - - def GENERATOREXP(self, node): - self.pushScope(GeneratorScope) - # handle generators before element - for gen in node.generators: - self.handleNode(gen, node) - self.handleNode(node.elt, node) - self.popScope() - - SETCOMP = GENERATOREXP - - def DICTCOMP(self, node): - self.pushScope(GeneratorScope) - for gen in node.generators: - self.handleNode(gen, node) - self.handleNode(node.key, node) - self.handleNode(node.value, node) - self.popScope() - - def FOR(self, node): - """ - Process bindings for loop variables. - """ - vars = [] - - def collectLoopVars(n): - if isinstance(n, ast.Name): - vars.append(n.id) - elif isinstance(n, ast.expr_context): - return - else: - for c in iter_child_nodes(n): - collectLoopVars(c) - - collectLoopVars(node.target) - for varn in vars: - if (isinstance(self.scope.get(varn), Importation) - # unused ones will get an unused import warning - and self.scope[varn].used): - self.report(messages.ImportShadowedByLoopVar, - node, varn, self.scope[varn].source) - - self.handleChildren(node) - - def NAME(self, node): - """ - Handle occurrence of Name (which can be a load/store/delete access.) - """ - # Locate the name in locals / function / globals scopes. - if isinstance(node.ctx, (ast.Load, ast.AugLoad)): - self.handleNodeLoad(node) - if (node.id == 'locals' and isinstance(self.scope, FunctionScope) - and isinstance(node.parent, ast.Call)): - # we are doing locals() call in current scope - self.scope.usesLocals = True - elif isinstance(node.ctx, (ast.Store, ast.AugStore)): - self.handleNodeStore(node) - elif isinstance(node.ctx, ast.Del): - self.handleNodeDelete(node) - else: - # must be a Param context -- this only happens for names in function - # arguments, but these aren't dispatched through here - raise RuntimeError("Got impossible expression context: %r" % (node.ctx,)) - - def FUNCTIONDEF(self, node): - for deco in node.decorator_list: - self.handleNode(deco, node) - self.addBinding(node, FunctionDefinition(node.name, node)) - self.LAMBDA(node) - if self.withDoctest: - self.deferFunction(lambda: self.handleDoctests(node)) - - def LAMBDA(self, node): - args = [] - - if PY2: - def addArgs(arglist): - for arg in arglist: - if isinstance(arg, ast.Tuple): - addArgs(arg.elts) - else: - if arg.id in args: - self.report(messages.DuplicateArgument, - node, arg.id) - args.append(arg.id) - addArgs(node.args.args) - defaults = node.args.defaults - else: - for arg in node.args.args + node.args.kwonlyargs: - if arg.arg in args: - self.report(messages.DuplicateArgument, - node, arg.arg) - args.append(arg.arg) - self.handleNode(arg.annotation, node) - if hasattr(node, 'returns'): # Only for FunctionDefs - for annotation in (node.args.varargannotation, - node.args.kwargannotation, node.returns): - self.handleNode(annotation, node) - defaults = node.args.defaults + node.args.kw_defaults - - # vararg/kwarg identifiers are not Name nodes - for wildcard in (node.args.vararg, node.args.kwarg): - if not wildcard: - continue - if wildcard in args: - self.report(messages.DuplicateArgument, node, wildcard) - args.append(wildcard) - for default in defaults: - self.handleNode(default, node) - - def runFunction(): - - self.pushScope() - for name in args: - self.addBinding(node, Argument(name, node), reportRedef=False) - if isinstance(node.body, list): - # case for FunctionDefs - for stmt in node.body: - self.handleNode(stmt, node) - else: - # case for Lambdas - self.handleNode(node.body, node) - - def checkUnusedAssignments(): - """ - Check to see if any assignments have not been used. - """ - for name, binding in self.scope.unusedAssignments(): - self.report(messages.UnusedVariable, binding.source, name) - self.deferAssignment(checkUnusedAssignments) - self.popScope() - - self.deferFunction(runFunction) - - def CLASSDEF(self, node): - """ - Check names used in a class definition, including its decorators, base - classes, and the body of its definition. Additionally, add its name to - the current scope. - """ - for deco in node.decorator_list: - self.handleNode(deco, node) - for baseNode in node.bases: - self.handleNode(baseNode, node) - if not PY2: - for keywordNode in node.keywords: - self.handleNode(keywordNode, node) - self.pushScope(ClassScope) - if self.withDoctest: - self.deferFunction(lambda: self.handleDoctests(node)) - for stmt in node.body: - self.handleNode(stmt, node) - self.popScope() - self.addBinding(node, ClassDefinition(node.name, node)) - - def ASSIGN(self, node): - self.handleNode(node.value, node) - for target in node.targets: - self.handleNode(target, node) - - def AUGASSIGN(self, node): - self.handleNodeLoad(node.target) - self.handleNode(node.value, node) - self.handleNode(node.target, node) - - def IMPORT(self, node): - for alias in node.names: - name = alias.asname or alias.name - importation = Importation(name, node) - self.addBinding(node, importation) - - def IMPORTFROM(self, node): - if node.module == '__future__': - if not self.futuresAllowed: - self.report(messages.LateFutureImport, - node, [n.name for n in node.names]) - else: - self.futuresAllowed = False - - for alias in node.names: - if alias.name == '*': - self.scope.importStarred = True - self.report(messages.ImportStarUsed, node, node.module) - continue - name = alias.asname or alias.name - importation = Importation(name, node) - if node.module == '__future__': - importation.used = (self.scope, node) - self.addBinding(node, importation) - - def TRY(self, node): - handler_names = [] - # List the exception handlers - for handler in node.handlers: - if isinstance(handler.type, ast.Tuple): - for exc_type in handler.type.elts: - handler_names.append(getNodeName(exc_type)) - elif handler.type: - handler_names.append(getNodeName(handler.type)) - # Memorize the except handlers and process the body - self.exceptHandlers.append(handler_names) - for child in node.body: - self.handleNode(child, node) - self.exceptHandlers.pop() - # Process the other nodes: "except:", "else:", "finally:" - for child in iter_child_nodes(node): - if child not in node.body: - self.handleNode(child, node) - - TRYEXCEPT = TRY - - def EXCEPTHANDLER(self, node): - # 3.x: in addition to handling children, we must handle the name of - # the exception, which is not a Name node, but a simple string. - if isinstance(node.name, str): - self.handleNodeStore(node) - self.handleChildren(node)
--- a/UtilitiesPython2/py2flakes/messages.py Sat Feb 01 16:03:01 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,311 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright (c) 2010 - 2014 Detlev Offenbach <detlev@die-offenbachs.de> -# -# Original (c) 2005 Divmod, Inc. See LICENSE file for details -# -# This module is based on pyflakes for Python2 and Python3, but was modified to -# be integrated into eric5 - -""" -Module implementing the messages for pyflakes. - -Note: This is a copy of the identical module contained in Utilities.pyflakes. -It is here to make it accessible to the external Python 2 process. -""" - - -class Message(object): - """ - Class defining the base for all specific message classes. - """ - message_id = 'F00' - message = '' - message_args = () - - def __init__(self, filename, loc): - """ - Constructor - - @param filename name of the file (string) - @param loc location of the issue - """ - self.filename = filename - self.lineno = loc.lineno - self.col = getattr(loc, 'col_offset', 0) - - def __str__(self): - """ - Special method return a string representation of the instance object. - - @return string representation of the object (string) - """ - return '%s:%s: %s' % ( - self.filename, self.lineno, self.message % self.message_args) - - def getMessageData(self): - """ - Public method to get the individual message data elements. - - @return tuple containing file name, line number, message ID and - message arguments (string, integer, string, list) - """ - return (self.filename, self.lineno, self.message_id, self.message_args) - - -class UnusedImport(Message): - """ - Class defining the "Unused Import" message. - """ - message_id = 'F01' - message = '%r imported but unused' - - def __init__(self, filename, loc, name): - """ - Constructor - - @param filename name of the file (string) - @param loc location of the issue - @param name name of the unused import (string) - """ - Message.__init__(self, filename, loc) - self.message_args = (name,) - - -class RedefinedWhileUnused(Message): - """ - Class defining the "Redefined While Unused" message. - """ - message_id = 'F02' - message = 'redefinition of unused %r from line %r' - - def __init__(self, filename, loc, name, orig_loc): - """ - Constructor - - @param filename name of the file (string) - @param loc location of the issue - @param name name of the redefined object (string) - @param orig_loc location of the original definition - """ - Message.__init__(self, filename, loc) - self.message_args = (name, orig_loc.lineno) - - -class RedefinedInListComp(Message): - """ - Class defining the "Redefined In List Comprehension" message. - """ - message_id = 'F12' - message = 'list comprehension redefines %r from line %r' - - def __init__(self, filename, loc, name, orig_loc): - """ - Constructor - - @param filename name of the file (string) - @param loc location of the issue - @param name name of the redefined object (string) - @param orig_loc location of the original definition - """ - Message.__init__(self, filename, loc) - self.message_args = (name, orig_loc.lineno) - - -class ImportShadowedByLoopVar(Message): - """ - Class defining the "Import Shadowed By Loop Var" message. - """ - message_id = 'F03' - message = 'import %r from line %r shadowed by loop variable' - - def __init__(self, filename, loc, name, orig_loc): - """ - Constructor - - @param filename name of the file (string) - @param loc location of the issue - @param name name of the shadowed import (string) - @param orig_loc location of the import - """ - Message.__init__(self, filename, loc) - self.message_args = (name, orig_loc.lineno) - - -class ImportStarUsed(Message): - """ - Class defining the "Import Star Used" message. - """ - message_id = 'F04' - message = "'from %s import *' used; unable to detect undefined names" - - def __init__(self, filename, loc, modname): - """ - Constructor - - @param filename name of the file (string) - @param loc location of the issue - @param modname name of the module imported using star import (string) - """ - Message.__init__(self, filename, loc) - self.message_args = (modname,) - - -class UndefinedName(Message): - """ - Class defining the "Undefined Name" message. - """ - message_id = 'F05' - message = 'undefined name %r' - - def __init__(self, filename, loc, name): - """ - Constructor - - @param filename name of the file (string) - @param loc location of the issue - @param name undefined name (string) - """ - Message.__init__(self, filename, loc) - self.message_args = (name,) - - -class DoctestSyntaxError(Message): - """ - Class defining the "Doctest syntax Error" message. - """ - message_id = 'F13' - message = 'syntax error in doctest' - - def __init__(self, filename, loc, position=None): - """ - Constructor - - @param filename name of the file (string) - @param loc location of the issue - @param position position of the syntax error - """ - Message.__init__(self, filename, loc) - if position: - (self.lineno, self.col) = position - self.message_args = () - - -class UndefinedExport(Message): - """ - Class defining the "Undefined Export" message. - """ - message_id = 'F06' - message = 'undefined name %r in __all__' - - def __init__(self, filename, loc, name): - """ - Constructor - - @param filename name of the file (string) - @param loc location of the issue - @param name undefined exported name (string) - """ - Message.__init__(self, filename, loc) - self.message_args = (name,) - - -class UndefinedLocal(Message): - """ - Class defining the "Undefined Local Variable" message. - """ - message_id = 'F07' - message = "local variable %r (defined in enclosing scope on line %r)" \ - " referenced before assignment" - - def __init__(self, filename, loc, name, orig_loc): - """ - Constructor - - @param filename name of the file (string) - @param loc location of the issue - @param name name of the prematurely referenced variable (string) - @param orig_loc location of the variable definition - """ - Message.__init__(self, filename, loc) - self.message_args = (name, orig_loc.lineno) - - -class DuplicateArgument(Message): - """ - Class defining the "Duplicate Argument" message. - """ - message_id = 'F08' - message = 'duplicate argument %r in function definition' - - def __init__(self, filename, loc, name): - """ - Constructor - - @param filename name of the file (string) - @param loc location of the issue - @param name name of the duplicate argument (string) - """ - Message.__init__(self, filename, loc) - self.message_args = (name,) - - -class Redefined(Message): - """ - Class defining the "Redefined" message. - """ - message_id = 'F09' - message = 'redefinition of %r from line %r' - - def __init__(self, filename, loc, name, orig_loc): - """ - Constructor - - @param filename name of the file (string) - @param loc location of the issue - @param name name of the redefined function (string) - @param orig_loc location of the original definition - """ - Message.__init__(self, filename, loc) - self.message_args = (name, orig_loc.lineno) - - -class LateFutureImport(Message): - """ - Class defining the "Late Future Import" message. - """ - message_id = 'F10' - message = 'future import(s) %r after other statements' - - def __init__(self, filename, loc, names): - """ - Constructor - - @param filename name of the file (string) - @param loc location of the issue - @param names names of the imported futures (string) - """ - Message.__init__(self, filename, loc) - self.message_args = (names,) - - -class UnusedVariable(Message): - """ - Class defining the "Unused Variable" message. - - Indicates that a variable has been explicitly assigned to but not actually - used. - """ - message_id = 'F11' - message = 'local variable %r is assigned to but never used' - - def __init__(self, filename, loc, names): - """ - Constructor - - @param filename name of the file (string) - @param loc location of the issue - @param names names of unused variable (string) - """ - Message.__init__(self, filename, loc) - self.message_args = (names,)
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/UtilitiesPython2/pyflakes/__init__.py Sat Feb 01 16:29:24 2014 +0100 @@ -0,0 +1,13 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2010 - 2014 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Package containing pyflakes adapted to eric5. + +Note: This is a copy of the identical package contained in Utilities. +It is here to make it accessible to the external Python 2 process. +""" + +__version__ = '0.7.3'
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/UtilitiesPython2/pyflakes/checker.py Sat Feb 01 16:29:24 2014 +0100 @@ -0,0 +1,875 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2010 - 2014 Detlev Offenbach <detlev@die-offenbachs.de> +# +# Original (c) 2005-2010 Divmod, Inc. +# +# This module is based on pyflakes for Python2 and Python3, but was modified to +# be integrated into eric5 + +import doctest +import os +import sys +try: + builtin_vars = dir(__import__('builtins')) + PY2 = False + ## added for eric5 + basestring = str + ## end added for eric5 +except ImportError: + builtin_vars = dir(__import__('__builtin__')) + PY2 = True + +try: + import ast + iter_child_nodes = ast.iter_child_nodes +except ImportError: # Python 2.5 + import _ast as ast + + if 'decorator_list' not in ast.ClassDef._fields: + # Patch the missing attribute 'decorator_list' + ast.ClassDef.decorator_list = () + ast.FunctionDef.decorator_list = property(lambda s: s.decorators) + + def iter_child_nodes(node): + """ + Yield all direct child nodes of *node*, that is, all fields that + are nodes and all items of fields that are lists of nodes. + """ + for name in node._fields: + field = getattr(node, name, None) + if isinstance(field, ast.AST): + yield field + elif isinstance(field, list): + for item in field: + yield item +# Python >= 3.3 uses ast.Try instead of (ast.TryExcept + ast.TryFinally) +if hasattr(ast, 'Try'): + ast_TryExcept = ast.Try + ast_TryFinally = () +else: + ast_TryExcept = ast.TryExcept + ast_TryFinally = ast.TryFinally + +from . import messages + +if PY2: + def getNodeType(node_class): + # workaround str.upper() which is locale-dependent + return str(unicode(node_class.__name__).upper()) # __IGNORE_WARNING__ +else: + def getNodeType(node_class): + return node_class.__name__.upper() + + +class Binding(object): + """ + Represents the binding of a value to a name. + + The checker uses this to keep track of which names have been bound and + which names have not. See Assignment for a special type of binding that + is checked with stricter rules. + """ + def __init__(self, name, source): + self.name = name + self.source = source + self.used = False + + def __str__(self): + return self.name + + def __repr__(self): + return '<%s object %r from line %r at 0x%x>' % ( + self.__class__.__name__, + self.name, + self.source.lineno, + id(self)) + + +class Importation(Binding): + """ + A binding created by an import statement. + """ + def __init__(self, name, source): + self.fullName = name + name = name.split('.')[0] + super(Importation, self).__init__(name, source) + + +class Argument(Binding): + """ + Represents binding a name as an argument. + """ + pass + + +class Definition(Binding): + """ + A binding that defines a function or a class. + """ + pass + + +class Assignment(Binding): + """ + Represents binding a name with an explicit assignment. + + The checker will raise warnings for any Assignment that isn't used. Also, + the checker does not consider assignments in tuple/list unpacking to be + Assignments, rather it treats them as simple Bindings. + """ + pass + + +class FunctionDefinition(Definition): + """ + Represents a function definition. + """ + pass + + +class ClassDefinition(Definition): + """ + Represents a class definition. + """ + pass + + +class ExportBinding(Binding): + """ + A binding created by an __all__ assignment. If the names in the list + can be determined statically, they will be treated as names for export and + additional checking applied to them. + + The only __all__ assignment that can be recognized is one which takes + the value of a literal list containing literal strings. For example:: + + __all__ = ["foo", "bar"] + + Names which are imported and not otherwise used but appear in the value of + __all__ will not have an unused import warning reported for them. + """ + def names(self): + """ + Return a list of the names referenced by this binding. + """ + names = [] + if isinstance(self.source, ast.List): + for node in self.source.elts: + if isinstance(node, ast.Str): + names.append(node.s) + return names + + +class Scope(dict): + """ + Class defining the scope base class. + """ + importStarred = False # set to True when import * is found + + def __repr__(self): + scope_cls = self.__class__.__name__ + return '<%s at 0x%x %s>' % (scope_cls, id(self), dict.__repr__(self)) + + +class ClassScope(Scope): + """ + Class representing a name scope for a class. + """ + pass + + +class FunctionScope(Scope): + """ + Class representing a name scope for a function. + """ + usesLocals = False + alwaysUsed = set(['__tracebackhide__', + '__traceback_info__', '__traceback_supplement__']) + + def __init__(self): + super(FunctionScope, self).__init__() + # Simplify: manage the special locals as globals + self.globals = self.alwaysUsed.copy() + + def unusedAssignments(self): + """ + Return a generator for the assignments which have not been used. + """ + for name, binding in self.items(): + if (not binding.used and name not in self.globals + and not self.usesLocals + and isinstance(binding, Assignment)): + yield name, binding + + +class GeneratorScope(Scope): + """ + Class representing a name scope for a generator function. + """ + pass + + +class ModuleScope(Scope): + """ + Class representing a name scope for a module. + """ + pass + +# Globally defined names which are not attributes of the builtins module, or +# are only present on some platforms. +_MAGIC_GLOBALS = ['__file__', '__builtins__', 'WindowsError'] + + +def getNodeName(node): + """ + Module function for getting the name of a node. + """ + # Returns node.id, or node.name, or None + if hasattr(node, 'id'): # One of the many nodes with an id + return node.id + if hasattr(node, 'name'): # a ExceptHandler node + return node.name + + +class Checker(object): + """ + Class to check the cleanliness and sanity of Python code. + """ + nodeDepth = 0 + offset = None + traceTree = False + withDoctest = ('PYFLAKES_NODOCTEST' not in os.environ) + + builtIns = set(builtin_vars).union(_MAGIC_GLOBALS) + _customBuiltIns = os.environ.get('PYFLAKES_BUILTINS') + if _customBuiltIns: + builtIns.update(_customBuiltIns.split(',')) + del _customBuiltIns + + def __init__(self, tree, filename='(none)', builtins=None): + """ + Constructor + + @param tree parsed module tree or module source code + @param filename name of the module file (string) + @param builtins set of names to be treated as builtins (set of string) + """ + self._nodeHandlers = {} + self._deferredFunctions = [] + self._deferredAssignments = [] + self.deadScopes = [] + self.messages = [] + self.filename = filename + if builtins: + self.builtIns = self.builtIns.union(builtins) + self.scopeStack = [ModuleScope()] + self.exceptHandlers = [()] + self.futuresAllowed = True + + ## added for eric5 + if isinstance(tree, basestring): + tree = compile(tree, filename, "exec", ast.PyCF_ONLY_AST) + ## end added for eric5 + + self.root = tree + self.handleChildren(tree) + self.runDeferred(self._deferredFunctions) + # Set _deferredFunctions to None so that deferFunction will fail + # noisily if called after we've run through the deferred functions. + self._deferredFunctions = None + self.runDeferred(self._deferredAssignments) + # Set _deferredAssignments to None so that deferAssignment will fail + # noisily if called after we've run through the deferred assignments. + self._deferredAssignments = None + del self.scopeStack[1:] + self.popScope() + self.checkDeadScopes() + + def deferFunction(self, callable): + ''' + Schedule a function handler to be called just before completion. + + This is used for handling function bodies, which must be deferred + because code later in the file might modify the global scope. When + `callable` is called, the scope at the time this is called will be + restored, however it will contain any new bindings added to it. + ''' + self._deferredFunctions.append((callable, self.scopeStack[:], + self.offset)) + + def deferAssignment(self, callable): + """ + Schedule an assignment handler to be called just after deferred + function handlers. + """ + self._deferredAssignments.append((callable, self.scopeStack[:], + self.offset)) + + def runDeferred(self, deferred): + """ + Run the callables in deferred using their associated scope stack. + """ + for handler, scope, offset in deferred: + self.scopeStack = scope + self.offset = offset + handler() + + @property + def scope(self): + return self.scopeStack[-1] + + def popScope(self): + self.deadScopes.append(self.scopeStack.pop()) + + def checkDeadScopes(self): + """ + Look at scopes which have been fully examined and report names in them + which were imported but unused. + """ + for scope in self.deadScopes: + export = isinstance(scope.get('__all__'), ExportBinding) + if export: + all = scope['__all__'].names() + if not scope.importStarred and \ + os.path.basename(self.filename) != '__init__.py': + # Look for possible mistakes in the export list + undefined = set(all) - set(scope) + for name in undefined: + self.report(messages.UndefinedExport, + scope['__all__'].source, name) + else: + all = [] + + # Look for imported names that aren't used. + for importation in scope.values(): + if isinstance(importation, Importation): + if not importation.used and importation.name not in all: + self.report(messages.UnusedImport, + importation.source, importation.name) + + def pushScope(self, scopeClass=FunctionScope): + self.scopeStack.append(scopeClass()) + + def pushFunctionScope(self): # XXX Deprecated + self.pushScope(FunctionScope) + + def pushClassScope(self): # XXX Deprecated + self.pushScope(ClassScope) + + def report(self, messageClass, *args, **kwargs): + self.messages.append(messageClass(self.filename, *args, **kwargs)) + + def hasParent(self, node, kind): + while hasattr(node, 'parent'): + node = node.parent + if isinstance(node, kind): + return True + + def getCommonAncestor(self, lnode, rnode, stop=None): + if not stop: + stop = self.root + if lnode is rnode: + return lnode + if stop in (lnode, rnode): + return stop + + if not hasattr(lnode, 'parent') or not hasattr(rnode, 'parent'): + return + if (lnode.level > rnode.level): + return self.getCommonAncestor(lnode.parent, rnode, stop) + if (rnode.level > lnode.level): + return self.getCommonAncestor(lnode, rnode.parent, stop) + return self.getCommonAncestor(lnode.parent, rnode.parent, stop) + + def descendantOf(self, node, ancestors, stop=None): + for a in ancestors: + if self.getCommonAncestor(node, a, stop) not in (stop, None): + return True + return False + + def onFork(self, parent, lnode, rnode, items): + return (self.descendantOf(lnode, items, parent) ^ + self.descendantOf(rnode, items, parent)) + + def differentForks(self, lnode, rnode): + """True, if lnode and rnode are located on different forks of IF/TRY""" + ancestor = self.getCommonAncestor(lnode, rnode) + if isinstance(ancestor, ast.If): + for fork in (ancestor.body, ancestor.orelse): + if self.onFork(ancestor, lnode, rnode, fork): + return True + elif isinstance(ancestor, ast_TryExcept): + body = ancestor.body + ancestor.orelse + for fork in [body] + [[hdl] for hdl in ancestor.handlers]: + if self.onFork(ancestor, lnode, rnode, fork): + return True + elif isinstance(ancestor, ast_TryFinally): + if self.onFork(ancestor, lnode, rnode, ancestor.body): + return True + return False + + def addBinding(self, node, value, reportRedef=True): + """ + Called when a binding is altered. + + - `node` is the statement responsible for the change + - `value` is the optional new value, a Binding instance, associated + with the binding; if None, the binding is deleted if it exists. + - if `reportRedef` is True (default), rebinding while unused will be + reported. + """ + redefinedWhileUnused = False + if not isinstance(self.scope, ClassScope): + for scope in self.scopeStack[::-1]: + existing = scope.get(value.name) + if (isinstance(existing, Importation) + and not existing.used + and (not isinstance(value, Importation) or + value.fullName == existing.fullName) + and reportRedef + and not self.differentForks(node, existing.source)): + redefinedWhileUnused = True + self.report(messages.RedefinedWhileUnused, + node, value.name, existing.source) + + existing = self.scope.get(value.name) + if not redefinedWhileUnused and self.hasParent(value.source, ast.ListComp): + if (existing and reportRedef + and not self.hasParent(existing.source, (ast.For, ast.ListComp)) + and not self.differentForks(node, existing.source)): + self.report(messages.RedefinedInListComp, + node, value.name, existing.source) + + if (isinstance(existing, Definition) + and not existing.used + and not self.differentForks(node, existing.source)): + self.report(messages.RedefinedWhileUnused, + node, value.name, existing.source) + else: + self.scope[value.name] = value + + def getNodeHandler(self, node_class): + try: + return self._nodeHandlers[node_class] + except KeyError: + nodeType = getNodeType(node_class) + self._nodeHandlers[node_class] = handler = getattr(self, nodeType) + return handler + + def handleNodeLoad(self, node): + name = getNodeName(node) + if not name: + return + # try local scope + try: + self.scope[name].used = (self.scope, node) + except KeyError: + pass + else: + return + + scopes = [scope for scope in self.scopeStack[:-1] + if isinstance(scope, (FunctionScope, ModuleScope))] + if isinstance(self.scope, GeneratorScope) and scopes[-1] != self.scopeStack[-2]: + scopes.append(self.scopeStack[-2]) + + # try enclosing function scopes and global scope + importStarred = self.scope.importStarred + for scope in reversed(scopes): + importStarred = importStarred or scope.importStarred + try: + scope[name].used = (self.scope, node) + except KeyError: + pass + else: + return + + # look in the built-ins + if importStarred or name in self.builtIns: + return + if name == '__path__' and os.path.basename(self.filename) == '__init__.py': + # the special name __path__ is valid only in packages + return + + # protected with a NameError handler? + if 'NameError' not in self.exceptHandlers[-1]: + self.report(messages.UndefinedName, node, name) + + def handleNodeStore(self, node): + name = getNodeName(node) + if not name: + return + # if the name hasn't already been defined in the current scope + if isinstance(self.scope, FunctionScope) and name not in self.scope: + # for each function or module scope above us + for scope in self.scopeStack[:-1]: + if not isinstance(scope, (FunctionScope, ModuleScope)): + continue + # if the name was defined in that scope, and the name has + # been accessed already in the current scope, and hasn't + # been declared global + used = name in scope and scope[name].used + if used and used[0] is self.scope and name not in self.scope.globals: + # then it's probably a mistake + self.report(messages.UndefinedLocal, + scope[name].used[1], name, scope[name].source) + break + + parent = getattr(node, 'parent', None) + if isinstance(parent, (ast.For, ast.comprehension, ast.Tuple, ast.List)): + binding = Binding(name, node) + elif (parent is not None and name == '__all__' and + isinstance(self.scope, ModuleScope)): + binding = ExportBinding(name, parent.value) + else: + binding = Assignment(name, node) + if name in self.scope: + binding.used = self.scope[name].used + self.addBinding(node, binding) + + def handleNodeDelete(self, node): + name = getNodeName(node) + if not name: + return + if isinstance(self.scope, FunctionScope) and name in self.scope.globals: + self.scope.globals.remove(name) + else: + try: + del self.scope[name] + except KeyError: + self.report(messages.UndefinedName, node, name) + + def handleChildren(self, tree): + for node in iter_child_nodes(tree): + self.handleNode(node, tree) + + def isDocstring(self, node): + """ + Determine if the given node is a docstring, as long as it is at the + correct place in the node tree. + """ + return isinstance(node, ast.Str) or (isinstance(node, ast.Expr) and + isinstance(node.value, ast.Str)) + + def getDocstring(self, node): + if isinstance(node, ast.Expr): + node = node.value + if not isinstance(node, ast.Str): + return (None, None) + # Computed incorrectly if the docstring has backslash + doctest_lineno = node.lineno - node.s.count('\n') - 1 + return (node.s, doctest_lineno) + + def handleNode(self, node, parent): + if node is None: + return + if self.offset and getattr(node, 'lineno', None) is not None: + node.lineno += self.offset[0] + node.col_offset += self.offset[1] + if self.traceTree: + print(' ' * self.nodeDepth + node.__class__.__name__) + if self.futuresAllowed and not (isinstance(node, ast.ImportFrom) or + self.isDocstring(node)): + self.futuresAllowed = False + self.nodeDepth += 1 + node.level = self.nodeDepth + node.parent = parent + try: + handler = self.getNodeHandler(node.__class__) + handler(node) + finally: + self.nodeDepth -= 1 + if self.traceTree: + print(' ' * self.nodeDepth + 'end ' + node.__class__.__name__) + + _getDoctestExamples = doctest.DocTestParser().get_examples + + def handleDoctests(self, node): + try: + docstring, node_lineno = self.getDocstring(node.body[0]) + if not docstring: + return + examples = self._getDoctestExamples(docstring) + except (ValueError, IndexError): + # e.g. line 6 of the docstring for <string> has inconsistent + # leading whitespace: ... + return + node_offset = self.offset or (0, 0) + self.pushScope() + for example in examples: + try: + tree = compile(example.source, "<doctest>", "exec", ast.PyCF_ONLY_AST) + except SyntaxError: + e = sys.exc_info()[1] + position = (node_lineno + example.lineno + e.lineno, + example.indent + 4 + e.offset) + self.report(messages.DoctestSyntaxError, node, position) + else: + self.offset = (node_offset[0] + node_lineno + example.lineno, + node_offset[1] + example.indent + 4) + self.handleChildren(tree) + self.offset = node_offset + self.popScope() + + def ignore(self, node): + pass + + # "stmt" type nodes + RETURN = DELETE = PRINT = WHILE = IF = WITH = WITHITEM = RAISE = \ + TRYFINALLY = ASSERT = EXEC = EXPR = handleChildren + + CONTINUE = BREAK = PASS = ignore + + # "expr" type nodes + BOOLOP = BINOP = UNARYOP = IFEXP = DICT = SET = YIELD = YIELDFROM = \ + COMPARE = CALL = REPR = ATTRIBUTE = SUBSCRIPT = LIST = TUPLE = \ + STARRED = handleChildren + + NUM = STR = BYTES = ELLIPSIS = ignore + + # "slice" type nodes + SLICE = EXTSLICE = INDEX = handleChildren + + # expression contexts are node instances too, though being constants + LOAD = STORE = DEL = AUGLOAD = AUGSTORE = PARAM = ignore + + # same for operators + AND = OR = ADD = SUB = MULT = DIV = MOD = POW = LSHIFT = RSHIFT = \ + BITOR = BITXOR = BITAND = FLOORDIV = INVERT = NOT = UADD = USUB = \ + EQ = NOTEQ = LT = LTE = GT = GTE = IS = ISNOT = IN = NOTIN = ignore + + # additional node types + COMPREHENSION = KEYWORD = handleChildren + + def GLOBAL(self, node): + """ + Keep track of globals declarations. + """ + if isinstance(self.scope, FunctionScope): + self.scope.globals.update(node.names) + + NONLOCAL = GLOBAL + + def LISTCOMP(self, node): + # handle generators before element + for gen in node.generators: + self.handleNode(gen, node) + self.handleNode(node.elt, node) + + def GENERATOREXP(self, node): + self.pushScope(GeneratorScope) + # handle generators before element + for gen in node.generators: + self.handleNode(gen, node) + self.handleNode(node.elt, node) + self.popScope() + + SETCOMP = GENERATOREXP + + def DICTCOMP(self, node): + self.pushScope(GeneratorScope) + for gen in node.generators: + self.handleNode(gen, node) + self.handleNode(node.key, node) + self.handleNode(node.value, node) + self.popScope() + + def FOR(self, node): + """ + Process bindings for loop variables. + """ + vars = [] + + def collectLoopVars(n): + if isinstance(n, ast.Name): + vars.append(n.id) + elif isinstance(n, ast.expr_context): + return + else: + for c in iter_child_nodes(n): + collectLoopVars(c) + + collectLoopVars(node.target) + for varn in vars: + if (isinstance(self.scope.get(varn), Importation) + # unused ones will get an unused import warning + and self.scope[varn].used): + self.report(messages.ImportShadowedByLoopVar, + node, varn, self.scope[varn].source) + + self.handleChildren(node) + + def NAME(self, node): + """ + Handle occurrence of Name (which can be a load/store/delete access.) + """ + # Locate the name in locals / function / globals scopes. + if isinstance(node.ctx, (ast.Load, ast.AugLoad)): + self.handleNodeLoad(node) + if (node.id == 'locals' and isinstance(self.scope, FunctionScope) + and isinstance(node.parent, ast.Call)): + # we are doing locals() call in current scope + self.scope.usesLocals = True + elif isinstance(node.ctx, (ast.Store, ast.AugStore)): + self.handleNodeStore(node) + elif isinstance(node.ctx, ast.Del): + self.handleNodeDelete(node) + else: + # must be a Param context -- this only happens for names in function + # arguments, but these aren't dispatched through here + raise RuntimeError("Got impossible expression context: %r" % (node.ctx,)) + + def FUNCTIONDEF(self, node): + for deco in node.decorator_list: + self.handleNode(deco, node) + self.addBinding(node, FunctionDefinition(node.name, node)) + self.LAMBDA(node) + if self.withDoctest: + self.deferFunction(lambda: self.handleDoctests(node)) + + def LAMBDA(self, node): + args = [] + + if PY2: + def addArgs(arglist): + for arg in arglist: + if isinstance(arg, ast.Tuple): + addArgs(arg.elts) + else: + if arg.id in args: + self.report(messages.DuplicateArgument, + node, arg.id) + args.append(arg.id) + addArgs(node.args.args) + defaults = node.args.defaults + else: + for arg in node.args.args + node.args.kwonlyargs: + if arg.arg in args: + self.report(messages.DuplicateArgument, + node, arg.arg) + args.append(arg.arg) + self.handleNode(arg.annotation, node) + if hasattr(node, 'returns'): # Only for FunctionDefs + for annotation in (node.args.varargannotation, + node.args.kwargannotation, node.returns): + self.handleNode(annotation, node) + defaults = node.args.defaults + node.args.kw_defaults + + # vararg/kwarg identifiers are not Name nodes + for wildcard in (node.args.vararg, node.args.kwarg): + if not wildcard: + continue + if wildcard in args: + self.report(messages.DuplicateArgument, node, wildcard) + args.append(wildcard) + for default in defaults: + self.handleNode(default, node) + + def runFunction(): + + self.pushScope() + for name in args: + self.addBinding(node, Argument(name, node), reportRedef=False) + if isinstance(node.body, list): + # case for FunctionDefs + for stmt in node.body: + self.handleNode(stmt, node) + else: + # case for Lambdas + self.handleNode(node.body, node) + + def checkUnusedAssignments(): + """ + Check to see if any assignments have not been used. + """ + for name, binding in self.scope.unusedAssignments(): + self.report(messages.UnusedVariable, binding.source, name) + self.deferAssignment(checkUnusedAssignments) + self.popScope() + + self.deferFunction(runFunction) + + def CLASSDEF(self, node): + """ + Check names used in a class definition, including its decorators, base + classes, and the body of its definition. Additionally, add its name to + the current scope. + """ + for deco in node.decorator_list: + self.handleNode(deco, node) + for baseNode in node.bases: + self.handleNode(baseNode, node) + if not PY2: + for keywordNode in node.keywords: + self.handleNode(keywordNode, node) + self.pushScope(ClassScope) + if self.withDoctest: + self.deferFunction(lambda: self.handleDoctests(node)) + for stmt in node.body: + self.handleNode(stmt, node) + self.popScope() + self.addBinding(node, ClassDefinition(node.name, node)) + + def ASSIGN(self, node): + self.handleNode(node.value, node) + for target in node.targets: + self.handleNode(target, node) + + def AUGASSIGN(self, node): + self.handleNodeLoad(node.target) + self.handleNode(node.value, node) + self.handleNode(node.target, node) + + def IMPORT(self, node): + for alias in node.names: + name = alias.asname or alias.name + importation = Importation(name, node) + self.addBinding(node, importation) + + def IMPORTFROM(self, node): + if node.module == '__future__': + if not self.futuresAllowed: + self.report(messages.LateFutureImport, + node, [n.name for n in node.names]) + else: + self.futuresAllowed = False + + for alias in node.names: + if alias.name == '*': + self.scope.importStarred = True + self.report(messages.ImportStarUsed, node, node.module) + continue + name = alias.asname or alias.name + importation = Importation(name, node) + if node.module == '__future__': + importation.used = (self.scope, node) + self.addBinding(node, importation) + + def TRY(self, node): + handler_names = [] + # List the exception handlers + for handler in node.handlers: + if isinstance(handler.type, ast.Tuple): + for exc_type in handler.type.elts: + handler_names.append(getNodeName(exc_type)) + elif handler.type: + handler_names.append(getNodeName(handler.type)) + # Memorize the except handlers and process the body + self.exceptHandlers.append(handler_names) + for child in node.body: + self.handleNode(child, node) + self.exceptHandlers.pop() + # Process the other nodes: "except:", "else:", "finally:" + for child in iter_child_nodes(node): + if child not in node.body: + self.handleNode(child, node) + + TRYEXCEPT = TRY + + def EXCEPTHANDLER(self, node): + # 3.x: in addition to handling children, we must handle the name of + # the exception, which is not a Name node, but a simple string. + if isinstance(node.name, str): + self.handleNodeStore(node) + self.handleChildren(node)
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/UtilitiesPython2/pyflakes/messages.py Sat Feb 01 16:29:24 2014 +0100 @@ -0,0 +1,311 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2010 - 2014 Detlev Offenbach <detlev@die-offenbachs.de> +# +# Original (c) 2005 Divmod, Inc. See LICENSE file for details +# +# This module is based on pyflakes for Python2 and Python3, but was modified to +# be integrated into eric5 + +""" +Module implementing the messages for pyflakes. + +Note: This is a copy of the identical module contained in Utilities.pyflakes. +It is here to make it accessible to the external Python 2 process. +""" + + +class Message(object): + """ + Class defining the base for all specific message classes. + """ + message_id = 'F00' + message = '' + message_args = () + + def __init__(self, filename, loc): + """ + Constructor + + @param filename name of the file (string) + @param loc location of the issue + """ + self.filename = filename + self.lineno = loc.lineno + self.col = getattr(loc, 'col_offset', 0) + + def __str__(self): + """ + Special method return a string representation of the instance object. + + @return string representation of the object (string) + """ + return '%s:%s: %s' % ( + self.filename, self.lineno, self.message % self.message_args) + + def getMessageData(self): + """ + Public method to get the individual message data elements. + + @return tuple containing file name, line number, message ID and + message arguments (string, integer, string, list) + """ + return (self.filename, self.lineno, self.message_id, self.message_args) + + +class UnusedImport(Message): + """ + Class defining the "Unused Import" message. + """ + message_id = 'F01' + message = '%r imported but unused' + + def __init__(self, filename, loc, name): + """ + Constructor + + @param filename name of the file (string) + @param loc location of the issue + @param name name of the unused import (string) + """ + Message.__init__(self, filename, loc) + self.message_args = (name,) + + +class RedefinedWhileUnused(Message): + """ + Class defining the "Redefined While Unused" message. + """ + message_id = 'F02' + message = 'redefinition of unused %r from line %r' + + def __init__(self, filename, loc, name, orig_loc): + """ + Constructor + + @param filename name of the file (string) + @param loc location of the issue + @param name name of the redefined object (string) + @param orig_loc location of the original definition + """ + Message.__init__(self, filename, loc) + self.message_args = (name, orig_loc.lineno) + + +class RedefinedInListComp(Message): + """ + Class defining the "Redefined In List Comprehension" message. + """ + message_id = 'F12' + message = 'list comprehension redefines %r from line %r' + + def __init__(self, filename, loc, name, orig_loc): + """ + Constructor + + @param filename name of the file (string) + @param loc location of the issue + @param name name of the redefined object (string) + @param orig_loc location of the original definition + """ + Message.__init__(self, filename, loc) + self.message_args = (name, orig_loc.lineno) + + +class ImportShadowedByLoopVar(Message): + """ + Class defining the "Import Shadowed By Loop Var" message. + """ + message_id = 'F03' + message = 'import %r from line %r shadowed by loop variable' + + def __init__(self, filename, loc, name, orig_loc): + """ + Constructor + + @param filename name of the file (string) + @param loc location of the issue + @param name name of the shadowed import (string) + @param orig_loc location of the import + """ + Message.__init__(self, filename, loc) + self.message_args = (name, orig_loc.lineno) + + +class ImportStarUsed(Message): + """ + Class defining the "Import Star Used" message. + """ + message_id = 'F04' + message = "'from %s import *' used; unable to detect undefined names" + + def __init__(self, filename, loc, modname): + """ + Constructor + + @param filename name of the file (string) + @param loc location of the issue + @param modname name of the module imported using star import (string) + """ + Message.__init__(self, filename, loc) + self.message_args = (modname,) + + +class UndefinedName(Message): + """ + Class defining the "Undefined Name" message. + """ + message_id = 'F05' + message = 'undefined name %r' + + def __init__(self, filename, loc, name): + """ + Constructor + + @param filename name of the file (string) + @param loc location of the issue + @param name undefined name (string) + """ + Message.__init__(self, filename, loc) + self.message_args = (name,) + + +class DoctestSyntaxError(Message): + """ + Class defining the "Doctest syntax Error" message. + """ + message_id = 'F13' + message = 'syntax error in doctest' + + def __init__(self, filename, loc, position=None): + """ + Constructor + + @param filename name of the file (string) + @param loc location of the issue + @param position position of the syntax error + """ + Message.__init__(self, filename, loc) + if position: + (self.lineno, self.col) = position + self.message_args = () + + +class UndefinedExport(Message): + """ + Class defining the "Undefined Export" message. + """ + message_id = 'F06' + message = 'undefined name %r in __all__' + + def __init__(self, filename, loc, name): + """ + Constructor + + @param filename name of the file (string) + @param loc location of the issue + @param name undefined exported name (string) + """ + Message.__init__(self, filename, loc) + self.message_args = (name,) + + +class UndefinedLocal(Message): + """ + Class defining the "Undefined Local Variable" message. + """ + message_id = 'F07' + message = "local variable %r (defined in enclosing scope on line %r)" \ + " referenced before assignment" + + def __init__(self, filename, loc, name, orig_loc): + """ + Constructor + + @param filename name of the file (string) + @param loc location of the issue + @param name name of the prematurely referenced variable (string) + @param orig_loc location of the variable definition + """ + Message.__init__(self, filename, loc) + self.message_args = (name, orig_loc.lineno) + + +class DuplicateArgument(Message): + """ + Class defining the "Duplicate Argument" message. + """ + message_id = 'F08' + message = 'duplicate argument %r in function definition' + + def __init__(self, filename, loc, name): + """ + Constructor + + @param filename name of the file (string) + @param loc location of the issue + @param name name of the duplicate argument (string) + """ + Message.__init__(self, filename, loc) + self.message_args = (name,) + + +class Redefined(Message): + """ + Class defining the "Redefined" message. + """ + message_id = 'F09' + message = 'redefinition of %r from line %r' + + def __init__(self, filename, loc, name, orig_loc): + """ + Constructor + + @param filename name of the file (string) + @param loc location of the issue + @param name name of the redefined function (string) + @param orig_loc location of the original definition + """ + Message.__init__(self, filename, loc) + self.message_args = (name, orig_loc.lineno) + + +class LateFutureImport(Message): + """ + Class defining the "Late Future Import" message. + """ + message_id = 'F10' + message = 'future import(s) %r after other statements' + + def __init__(self, filename, loc, names): + """ + Constructor + + @param filename name of the file (string) + @param loc location of the issue + @param names names of the imported futures (string) + """ + Message.__init__(self, filename, loc) + self.message_args = (names,) + + +class UnusedVariable(Message): + """ + Class defining the "Unused Variable" message. + + Indicates that a variable has been explicitly assigned to but not actually + used. + """ + message_id = 'F11' + message = 'local variable %r is assigned to but never used' + + def __init__(self, filename, loc, names): + """ + Constructor + + @param filename name of the file (string) + @param loc location of the issue + @param names names of unused variable (string) + """ + Message.__init__(self, filename, loc) + self.message_args = (names,)
--- a/eric5.e4p Sat Feb 01 16:03:01 2014 +0100 +++ b/eric5.e4p Sat Feb 01 16:29:24 2014 +0100 @@ -789,9 +789,6 @@ <Source>Preferences/ConfigurationPages/TrayStarterPage.py</Source> <Source>UtilitiesPython2/__init__.py</Source> <Source>UtilitiesPython2/Py2SyntaxChecker.py</Source> - <Source>UtilitiesPython2/py2flakes/__init__.py</Source> - <Source>UtilitiesPython2/py2flakes/checker.py</Source> - <Source>UtilitiesPython2/py2flakes/messages.py</Source> <Source>UtilitiesPython2/Tools.py</Source> <Source>UtilitiesPython2/Tabnanny.py</Source> <Source>UtilitiesPython2/TabnannyChecker.py</Source> @@ -1112,6 +1109,9 @@ <Source>Utilities/pyflakes/translations.py</Source> <Source>Plugins/VcsPlugins/vcsMercurial/HgRepoConfigDataDialog.py</Source> <Source>Plugins/VcsPlugins/vcsMercurial/HgUserConfigDataDialog.py</Source> + <Source>UtilitiesPython2/pyflakes/__init__.py</Source> + <Source>UtilitiesPython2/pyflakes/checker.py</Source> + <Source>UtilitiesPython2/pyflakes/messages.py</Source> </Sources> <Forms> <Form>PyUnit/UnittestDialog.ui</Form> @@ -1925,7 +1925,7 @@ <string>ExcludeFiles</string> </key> <value> - <string>*/ThirdParty/*, */coverage/*, */Ui_*.py, */Examples/*, */*_rc.py,*/pep8.py,*/py[23]flakes/checker.py</string> + <string>*/ThirdParty/*, */coverage/*, */Ui_*.py, */Examples/*, */*_rc.py,*/pep8.py,*/pyflakes/checker.py</string> </value> <key> <string>ExcludeMessages</string>