From dc182c73fb36b3ac2cfbcfe6dd107bc10284208c Mon Sep 17 00:00:00 2001 From: Jackson Goode Date: Tue, 30 Apr 2024 17:34:01 -0700 Subject: [PATCH] Edit --- pycg/processing/postprocessor.py | 2 +- pycg/processing/preprocessor.py | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/pycg/processing/postprocessor.py b/pycg/processing/postprocessor.py index 82ba2aa..0c74f05 100644 --- a/pycg/processing/postprocessor.py +++ b/pycg/processing/postprocessor.py @@ -185,7 +185,7 @@ def visit_ClassDef(self, node): cls = self.class_manager.get(cls_def.get_ns()) if not cls: cls = self.class_manager.create(cls_def.get_ns(), self.modname) - + print(cls.__name__) cls.clear_mro() for base in node.bases: # all bases are of the type ast.Name diff --git a/pycg/processing/preprocessor.py b/pycg/processing/preprocessor.py index 07bbbd2..d5c483e 100644 --- a/pycg/processing/preprocessor.py +++ b/pycg/processing/preprocessor.py @@ -223,11 +223,7 @@ def add_external_def(name, target): if self.exclusives and src_name.split(".")[0] not in self.exclusives: continue - # Skip ignored modules - if tgt_name in self.ignored_mods: - continue - - print(tgt_name) + print('target',tgt_name) if not imported_name: add_external_def(src_name, tgt_name) @@ -250,8 +246,6 @@ def add_external_def(name, target): if self.exclusives and modname.split(".")[0] not in self.exclusives: continue - print(modname) - fname = self.import_manager.get_filepath(modname) if not fname: