mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Convert raise statements in Tools/.
This commit is contained in:
parent
2d7f6a079d
commit
a817e5894b
16 changed files with 29 additions and 29 deletions
|
@ -11,7 +11,7 @@ def main():
|
|||
try:
|
||||
opts, args = getopt.getopt(sys.argv[1:], "t:")
|
||||
if not args:
|
||||
raise getopt.error, "At least one file argument required"
|
||||
raise getopt.error("At least one file argument required")
|
||||
except getopt.error as msg:
|
||||
print(msg)
|
||||
print("usage:", sys.argv[0], "[-t tabwidth] file ...")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue