Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update run.py
  • Loading branch information
terryjreedy authored Jul 6, 2019
commit e7427ee52e248a8c31651977414fdb6d4d53112d
7 changes: 5 additions & 2 deletions Lib/idlelib/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,11 @@ def getrecursionlimit():


def uninstall_recursionlimit_wrappers():
"""Uninstall the recursion limit wrappers from the sys module."""
# Needed for tests.
"""Uninstall the recursion limit wrappers from the sys module.

IDLE only uses this for tests. Users can import run and call
this to removes the wrapping.
"""
if (
getattr(sys.setrecursionlimit, '__wrapped__', None) and
getattr(sys.getrecursionlimit, '__wrapped__', None)
Expand Down