diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-08-18 23:04:14 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-08-18 23:17:45 +0200 |
commit | 44fc1e1e23fd1d3b43cf80a10eb1c032a4312a2b (patch) | |
tree | 5c6c2ad5028be821b72fdbda71160fe22b93f0e3 /astroid/const.py | |
parent | 76036144e4b0049575d5c2f0c64d6365529ee9e7 (diff) | |
download | astroid-git-builtin-simplified.tar.gz |
Replace the constant BUILTINS by the string 'builtins'builtin-simplified
This make for clearer and also sligtly faster code (means time
seems to decrese by 0.68% with this change alone (astroid/pylint)
in the pylint tests benchmarks). Done because we were using an
import from astroid from astroid.bases for one of those, which is
kinda messy.
Diffstat (limited to 'astroid/const.py')
-rw-r--r-- | astroid/const.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/astroid/const.py b/astroid/const.py index f3c4ee7d..b00dee7a 100644 --- a/astroid/const.py +++ b/astroid/const.py @@ -1,4 +1,3 @@ -import builtins import enum import sys @@ -18,5 +17,3 @@ class Context(enum.Enum): Load = Context.Load Store = Context.Store Del = Context.Del - -BUILTINS = builtins.__name__ # Could be just 'builtins' ? |