Get the entire AST for this file :param filename str: :rtype: ast
(filename, _)
| 147 | |
| 148 | @staticmethod |
| 149 | def get_tree(filename, _): |
| 150 | """ |
| 151 | Get the entire AST for this file |
| 152 | |
| 153 | :param filename str: |
| 154 | :rtype: ast |
| 155 | """ |
| 156 | try: |
| 157 | with open(filename) as f: |
| 158 | raw = f.read() |
| 159 | except ValueError: |
| 160 | with open(filename, encoding='UTF-8') as f: |
| 161 | raw = f.read() |
| 162 | return ast.parse(raw) |
| 163 | |
| 164 | @staticmethod |
| 165 | def separate_namespaces(tree): |
nothing calls this directly
no outgoing calls
no test coverage detected