diff options
author | Brett Cannon <brett@python.org> | 2015-02-13 13:32:00 -0500 |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2015-02-13 13:32:00 -0500 |
commit | 48a6aebe08b884b4c676d4946634f3783715785f (patch) | |
tree | db596b9c4320b2041f1b0d73fe7bfb39b2b18fcc | |
parent | 1a57c0cd26bc41e354d6a83d0802696fe4c1664b (diff) | |
download | pylint-48a6aebe08b884b4c676d4946634f3783715785f.tar.gz |
Also consider the builtins module as a single something is a builtin
-rw-r--r-- | checkers/python3.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/checkers/python3.py b/checkers/python3.py index d8d5bf3..0b14a5c 100644 --- a/checkers/python3.py +++ b/checkers/python3.py @@ -47,7 +47,7 @@ def _check_dict_node(node): or any(isinstance(x, astroid.Dict) for x in inferred_types)) def _is_builtin(node): - return getattr(node, 'name', None) == '__builtin__' + return getattr(node, 'name', None) in ('__builtin__', 'builtins') _accepts_iterator = {'iter', 'list', 'tuple', 'sorted', 'set', 'sum', 'any', 'all', 'enumerate'} |