mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
fix exception usage
This commit is contained in:
parent
573bd19e1f
commit
a7090dfc2c
2 changed files with 2 additions and 3 deletions
|
@ -79,8 +79,7 @@ def allocate_lock():
|
|||
def stack_size(size=None):
|
||||
"""Dummy implementation of thread.stack_size()."""
|
||||
if size is not None:
|
||||
msg = "setting thread stack size not supported on this platform"
|
||||
warnings.warn(msg, RuntimeWarning)
|
||||
raise error("setting thread stack size not supported")
|
||||
return 0
|
||||
|
||||
class LockType(object):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue