diff options
author | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2023-04-24 00:58:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-24 00:58:04 +0200 |
commit | 1336ee4a9b698bf501b5cda40e3524d6f5e532d5 (patch) | |
tree | 2289350c7e17a98838037438102e8bedaa2cb427 /astroid/const.py | |
parent | 7fa848126c8178e78c47dff0415a1fc175b041eb (diff) | |
download | astroid-git-1336ee4a9b698bf501b5cda40e3524d6f5e532d5.tar.gz |
Remove unused constants (#2141)
* Remove `PY38_PLUS` constant
* Remove `BUILTINS` constants
* Remove `Load` + `Store` + `Del`
* Remove `BOOL_SPECIAL_METHOD`
Diffstat (limited to 'astroid/const.py')
-rw-r--r-- | astroid/const.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/astroid/const.py b/astroid/const.py index 8e2f6012..95672ae5 100644 --- a/astroid/const.py +++ b/astroid/const.py @@ -7,11 +7,9 @@ import sys from pathlib import Path PY38 = sys.version_info[:2] == (3, 8) -PY38_PLUS = sys.version_info >= (3, 8) PY39_PLUS = sys.version_info >= (3, 9) PY310_PLUS = sys.version_info >= (3, 10) PY311_PLUS = sys.version_info >= (3, 11) -BUILTINS = "builtins" # TODO Remove in 2.8 WIN32 = sys.platform == "win32" @@ -28,12 +26,6 @@ class Context(enum.Enum): Del = 3 -# TODO Remove in 3.0 in favor of Context -Load = Context.Load -Store = Context.Store -Del = Context.Del - - ASTROID_INSTALL_DIRECTORY = Path(__file__).parent BRAIN_MODULES_DIRECTORY = ASTROID_INSTALL_DIRECTORY / "brain" |