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. |
| __generateTree | Private method to generate an AST for our source. |
| __ignoreCode | Private method to check if the message code should be ignored. |
| __reportInvalidSyntax | Private method to report a syntax error. |
| 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 generate an AST for our source.
Private method to check if the message code should be ignored.
Private method to report a syntax error.
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.