mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +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
|
|
@ -159,7 +159,7 @@ class CheckSuspiciousMarkupBuilder(Builder):
|
|||
except IOError: return
|
||||
for i, row in enumerate(csv.reader(f)):
|
||||
if len(row) != 4:
|
||||
raise ValueError, "wrong format in %s, line %d: %s" % (filename, i+1, row)
|
||||
raise ValueError("wrong format in %s, line %d: %s" % (filename, i+1, row))
|
||||
docname, lineno, issue, text = row
|
||||
docname = docname.decode('utf-8')
|
||||
if lineno: lineno = int(lineno)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue