diff options
| author | cpopa <devnull@localhost> | 2014-01-09 15:12:33 +0200 |
|---|---|---|
| committer | cpopa <devnull@localhost> | 2014-01-09 15:12:33 +0200 |
| commit | 37bc17e49dc640e8c2c7839aa3069c4256bd02de (patch) | |
| tree | 0e5b427d420da5a0d8a9c7af9f3846a86fb45394 | |
| parent | 9e0dfe50de779a4fdf4d2abe80587f541c7cb71c (diff) | |
| download | pylint-37bc17e49dc640e8c2c7839aa3069c4256bd02de.tar.gz | |
Fix builtin module name for Python 3.
| -rw-r--r-- | checkers/utils.py | 2 |
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 |
