Skip to content

Commit e325bd3

Browse files
cdce8pDanielNoord
authored andcommitted
Revert "Set higher recusion limit (2**12) for PyPy (#1984)"
This reverts commit 68bf7d5.
1 parent 68bf7d5 commit e325bd3

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

ChangeLog

-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ Release date: TBA
2020

2121
Closes PyCQA/pylint#8074
2222

23-
* Set a higher recursion limit at ``2**12`` for PyPy, instead of ``1000``
24-
to prevent accidental ``RecursionErrors``.
25-
2623

2724
What's New in astroid 2.13.3?
2825
=============================

astroid/__init__.py

+1-14
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"""
3232

3333
import functools
34-
import sys
3534
import tokenize
3635
from importlib import import_module
3736

@@ -49,15 +48,7 @@
4948
from astroid.bases import BaseInstance, BoundMethod, Instance, UnboundMethod
5049
from astroid.brain.helpers import register_module_extender
5150
from astroid.builder import extract_node, parse
52-
from astroid.const import (
53-
BRAIN_MODULES_DIRECTORY,
54-
IS_PYPY,
55-
PY310_PLUS,
56-
Context,
57-
Del,
58-
Load,
59-
Store,
60-
)
51+
from astroid.const import BRAIN_MODULES_DIRECTORY, PY310_PLUS, Context, Del, Load, Store
6152
from astroid.exceptions import (
6253
AstroidBuildingError,
6354
AstroidBuildingException,
@@ -200,10 +191,6 @@
200191
):
201192
tokenize._compile = functools.lru_cache()(tokenize._compile) # type: ignore[attr-defined]
202193

203-
if IS_PYPY:
204-
# Set a higher recursion limit for PyPy. 1000 is a bit low.
205-
sys.setrecursionlimit(2**12)
206-
207194
# load brain plugins
208195
for module in BRAIN_MODULES_DIRECTORY.iterdir():
209196
if module.suffix == ".py":

0 commit comments

Comments
 (0)