Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
Use 'in dict' not 'in dict.keys()' - hash lookup is faster than list …
Browse files Browse the repository at this point in the history
…lookup
  • Loading branch information
mschwager committed Aug 21, 2019
1 parent cb4c581 commit d9d922d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlint/linters/helpers/bad_module_attribute_use.py
Expand Up @@ -108,7 +108,7 @@ def visit_ImportFrom(self, node):
alias.name == '*'
for alias in node.names
)
if wildcard_import and node.module in self.illegal_module_attributes.keys():
if wildcard_import and node.module in self.illegal_module_attributes:
self.illegal_wildcard_imports.append(node.module)

self.results.extend([
Expand Down

0 comments on commit d9d922d

Please sign in to comment.