Skip to content

Commit

Permalink
pyrs: Remove multiple identical return values
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb committed Jun 24, 2021
1 parent b86c534 commit 3aea12d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyrs/transpiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,9 +625,8 @@ def visit_IntFlag(self, node):
)

def _import(self, name: str) -> str:
if name in self._rust_ignored_module_set:
return ""
self._usings.add(name)
if name not in self._rust_ignored_module_set:
self._usings.add(name)
return ""

def _import_from(self, module_name: str, names: List[str]) -> str:
Expand Down

0 comments on commit 3aea12d

Please sign in to comment.