From 37bc17e49dc640e8c2c7839aa3069c4256bd02de Mon Sep 17 00:00:00 2001 From: cpopa Date: Thu, 9 Jan 2014 15:12:33 +0200 Subject: Fix builtin module name for Python 3. --- checkers/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 could be considered as a builtin defined by python -- cgit v1.2.1