Use the preferred form of raise statements in the docs.

This commit is contained in:
Georg Brandl 2009-06-03 07:25:35 +00:00
parent dad7b7b1cb
commit c1edec3374
12 changed files with 26 additions and 27 deletions

View file

@ -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)