summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcpopa <devnull@localhost>2014-01-09 15:12:33 +0200
committercpopa <devnull@localhost>2014-01-09 15:12:33 +0200
commit37bc17e49dc640e8c2c7839aa3069c4256bd02de (patch)
tree0e5b427d420da5a0d8a9c7af9f3846a86fb45394
parent9e0dfe50de779a4fdf4d2abe80587f541c7cb71c (diff)
downloadpylint-37bc17e49dc640e8c2c7839aa3069c4256bd02de.tar.gz
Fix builtin module name for Python 3.
-rw-r--r--checkers/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkers/utils.py b/checkers/utils.py
index 7387711..728893e 100644
--- a/checkers/utils.py
+++ b/checkers/utils.py
@@ -124,7 +124,7 @@ SPECIAL_BUILTINS = ('__builtins__',) # '__path__', '__file__')
def is_builtin_object(node):
"""Returns True if the given node is an object from the __builtin__ module."""
- return node and node.root().name == '__builtin__'
+ return node and node.root().name == BUILTINS_NAME
def is_builtin(name): # was is_native_builtin
"""return true if <name> could be considered as a builtin defined by python