(path)
| 82 | |
| 83 | |
| 84 | def load_alias_map_file(path): |
| 85 | try: |
| 86 | with open(path) as fo: |
| 87 | alias_map = json.load(fo) |
| 88 | except FileNotFoundError as err: |
| 89 | raise InvalidMapFile(f"Cannot read alias_map_file - {err.filename} does not exist") |
| 90 | except json.JSONDecodeError: |
| 91 | raise InvalidMapFile(f"Cannot read alias_map_file - {path} is not valid json") |
| 92 | else: |
| 93 | return alias_map |
| 94 | |
| 95 | |
| 96 | class PGCompleter(Completer): |
no test coverage detected