summaryrefslogtreecommitdiff
path: root/astroid/__init__.py
diff options
context:
space:
mode:
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>2023-01-29 18:16:26 +0100
committerDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2023-01-29 20:25:25 +0100
commite325bd3f2c8a76138f5a2f12f374778c476be5af (patch)
tree6a7caf773bf1fe0a93672a0d6b764b644780f618 /astroid/__init__.py
parent68bf7d5034bedb3881ee679a2edc39d7928ae8d2 (diff)
downloadastroid-git-e325bd3f2c8a76138f5a2f12f374778c476be5af.tar.gz
Revert "Set higher recusion limit (2**12) for PyPy (#1984)"
This reverts commit 68bf7d5034bedb3881ee679a2edc39d7928ae8d2.
Diffstat (limited to 'astroid/__init__.py')
-rw-r--r--astroid/__init__.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/astroid/__init__.py b/astroid/__init__.py
index 05a4ff78..605a8b48 100644
--- a/astroid/__init__.py
+++ b/astroid/__init__.py
@@ -31,7 +31,6 @@ Main modules are:
"""
import functools
-import sys
import tokenize
from importlib import import_module
@@ -49,15 +48,7 @@ from astroid.astroid_manager import MANAGER
from astroid.bases import BaseInstance, BoundMethod, Instance, UnboundMethod
from astroid.brain.helpers import register_module_extender
from astroid.builder import extract_node, parse
-from astroid.const import (
- BRAIN_MODULES_DIRECTORY,
- IS_PYPY,
- PY310_PLUS,
- Context,
- Del,
- Load,
- Store,
-)
+from astroid.const import BRAIN_MODULES_DIRECTORY, PY310_PLUS, Context, Del, Load, Store
from astroid.exceptions import (
AstroidBuildingError,
AstroidBuildingException,
@@ -200,10 +191,6 @@ if (
):
tokenize._compile = functools.lru_cache()(tokenize._compile) # type: ignore[attr-defined]
-if IS_PYPY:
- # Set a higher recursion limit for PyPy. 1000 is a bit low.
- sys.setrecursionlimit(2**12)
-
# load brain plugins
for module in BRAIN_MODULES_DIRECTORY.iterdir():
if module.suffix == ".py":