summaryrefslogtreecommitdiff
path: root/Doc/tools/prechm.py
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/tools/prechm.py')
-rw-r--r--Doc/tools/prechm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tools/prechm.py b/Doc/tools/prechm.py
index 57a43fd6fe..db1f965532 100644
--- a/Doc/tools/prechm.py
+++ b/Doc/tools/prechm.py
@@ -448,7 +448,7 @@ def do_project(library, output, arch, version):
def openfile(file):
try:
p = open(file, "w")
- except IOError, msg:
+ except IOError as msg:
print file, ":", msg
sys.exit(1)
return p
@@ -466,7 +466,7 @@ def do_it(args = None):
try:
optlist, args = getopt.getopt(args, 'ckpv:')
- except getopt.error, msg:
+ except getopt.error as msg:
print msg
usage()