Skip to content

Commit

Permalink
Edit
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksongoode committed May 1, 2024
1 parent a159b35 commit dc182c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pycg/processing/postprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 1 addition & 7 deletions pycg/processing/preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check failure on line 226 in pycg/processing/preprocessor.py

View workflow job for this annotation

GitHub Actions / flake8

missing whitespace after ','

if not imported_name:
add_external_def(src_name, tgt_name)
Expand All @@ -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:
Expand Down

0 comments on commit dc182c7

Please sign in to comment.