diff options
author | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2006-06-13 17:14:36 (GMT) |
---|---|---|
committer | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2006-06-13 17:14:36 (GMT) |
commit | a7090dfc2c97a788a8c8c63975ee54c261d03998 (patch) | |
tree | 845720d96720ca604d86cea98201d46844177e9a /Lib/dummy_thread.py | |
parent | 573bd19e1fbcddb707d93899640d656626998a8c (diff) | |
download | cpython-a7090dfc2c97a788a8c8c63975ee54c261d03998.zip cpython-a7090dfc2c97a788a8c8c63975ee54c261d03998.tar.gz cpython-a7090dfc2c97a788a8c8c63975ee54c261d03998.tar.bz2 |
fix exception usage
Diffstat (limited to 'Lib/dummy_thread.py')
-rw-r--r-- | Lib/dummy_thread.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/dummy_thread.py b/Lib/dummy_thread.py index 7c26f9e..a72c927 100644 --- a/Lib/dummy_thread.py +++ b/Lib/dummy_thread.py @@ -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): |