mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Use the preferred form of raise statements in the docs.
This commit is contained in:
parent
dad7b7b1cb
commit
c1edec3374
12 changed files with 26 additions and 27 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue