(self, ns, alter_sys)
| 283 | if verbose > 1: print(ex) # Persist with cleaning up |
| 284 | |
| 285 | def _fix_ns_for_legacy_pyc(self, ns, alter_sys): |
| 286 | char_to_add = "c" |
| 287 | ns["__file__"] += char_to_add |
| 288 | spec = ns["__spec__"] |
| 289 | new_spec = importlib.util.spec_from_file_location(spec.name, |
| 290 | ns["__file__"]) |
| 291 | ns["__spec__"] = new_spec |
| 292 | if alter_sys: |
| 293 | ns["run_argv0"] += char_to_add |
| 294 | |
| 295 | |
| 296 | def _check_module(self, depth, alter_sys=False, |
no outgoing calls
no test coverage detected