diff options
author | Georg Brandl <georg@python.org> | 2009-06-03 07:25:35 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-06-03 07:25:35 (GMT) |
commit | c1edec3374bb03ca936be3cd0b968140ec58e819 (patch) | |
tree | 4160a66a97eab66e3cc6d533566e8368a9cc9b8f /Doc/includes/mp_synchronize.py | |
parent | dad7b7b1cb83d6ead5e8af5c747256a1aaa3f6cf (diff) | |
download | cpython-c1edec3374bb03ca936be3cd0b968140ec58e819.zip cpython-c1edec3374bb03ca936be3cd0b968140ec58e819.tar.gz cpython-c1edec3374bb03ca936be3cd0b968140ec58e819.tar.bz2 |
Use the preferred form of raise statements in the docs.
Diffstat (limited to 'Doc/includes/mp_synchronize.py')
-rw-r--r-- | Doc/includes/mp_synchronize.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/includes/mp_synchronize.py b/Doc/includes/mp_synchronize.py index 2f43ad8..fd2ae77 100644 --- a/Doc/includes/mp_synchronize.py +++ b/Doc/includes/mp_synchronize.py @@ -249,7 +249,7 @@ def test(namespace=multiprocessing): info = multiprocessing._debug_info() if info: print info - raise ValueError, 'there should be no positive refcounts left' + raise ValueError('there should be no positive refcounts left') if __name__ == '__main__': @@ -271,6 +271,6 @@ if __name__ == '__main__': import multiprocessing.dummy as namespace else: print 'Usage:\n\t%s [processes | manager | threads]' % sys.argv[0] - raise SystemExit, 2 + raise SystemExit(2) test(namespace) |