Module implementing the checker for functions that can be replaced by use of the pathlib module.
None |
NameResolver | Class to resolve a Name or Attribute node. |
PathlibChecker | Class implementing a checker for functions that can be replaced by use of the pathlib module. |
PathlibVisitor | Class to traverse the AST node tree and check for potential issues. |
None |
Class to resolve a Name or Attribute node.
None |
None |
NameResolver | Constructor |
name | Public method to resolve the name. |
visit_Attribute | Public method to handle the Attribute AST node. |
visit_Name | Public method to handle the Name AST node. |
None |
Constructor
Public method to resolve the name.
Public method to handle the Attribute AST node.
Public method to handle the Name AST node.
Class implementing a checker for functions that can be replaced by use of the pathlib module.
Codes |
Function2Code |
None |
PathlibChecker | Constructor |
__checkForReplacement | Private method to check the given node for the need for a replacement. |
__error | Private method to record an issue. |
__ignoreCode | Private method to check if the message code should be ignored. |
run | Public method to check the given source against functions to be replaced by 'pathlib' equivalents. |
None |
Constructor
Private method to check the given node for the need for a replacement.
Private method to record an issue.
Private method to check if the message code should be ignored.
Public method to check the given source against functions to be replaced by 'pathlib' equivalents.
Class to traverse the AST node tree and check for potential issues.
None |
None |
PathlibVisitor | Constructor |
visit_Call | Public method to handle the Call AST node. |
visit_Import | Public method to handle the Import AST node. |
visit_ImportFrom | Public method handle the ImportFrom AST node. |
None |
Constructor
Public method to handle the Call AST node.
Public method to handle the Import AST node.
Public method handle the ImportFrom AST node.