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.
Category |
Codes |
Function2Code |
None |
PathlibChecker | Constructor |
__checkForReplacement | Private method to check the given node for the need for a replacement. |
__checkPathlibReplacement | Private method to check for pathlib replacements. |
None |
Constructor
Private method to check the given node for the need for a replacement.
Private method to check for pathlib replacements.
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.