Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9a13b43

Browse files
committed
Replace ThreadError by RuntimeError: the former is now an obsolete alias of the latter.
1 parent 0069bab commit 9a13b43

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/_thread.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ It defines the following constants and functions:
9494
*size* argument specifies the stack size to be used for subsequently created
9595
threads, and must be 0 (use platform or configured default) or a positive
9696
integer value of at least 32,768 (32kB). If changing the thread stack size is
97-
unsupported, a :exc:`ThreadError` is raised. If the specified stack size is
97+
unsupported, a :exc:`RuntimeError` is raised. If the specified stack size is
9898
invalid, a :exc:`ValueError` is raised and the stack size is unmodified. 32kB
9999
is currently the minimum supported stack size value to guarantee sufficient
100100
stack space for the interpreter itself. Note that some platforms may have

Doc/library/threading.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ This module defines the following functions and objects:
174174
*size* argument specifies the stack size to be used for subsequently created
175175
threads, and must be 0 (use platform or configured default) or a positive
176176
integer value of at least 32,768 (32kB). If changing the thread stack size is
177-
unsupported, a :exc:`ThreadError` is raised. If the specified stack size is
177+
unsupported, a :exc:`RuntimeError` is raised. If the specified stack size is
178178
invalid, a :exc:`ValueError` is raised and the stack size is unmodified. 32kB
179179
is currently the minimum supported stack size value to guarantee sufficient
180180
stack space for the interpreter itself. Note that some platforms may have

0 commit comments

Comments
 (0)