summaryrefslogtreecommitdiffstats
path: root/Doc/tools/listmodules
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/tools/listmodules')
-rwxr-xr-xDoc/tools/listmodules2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tools/listmodules b/Doc/tools/listmodules
index 03e7b5d..8469972 100755
--- a/Doc/tools/listmodules
+++ b/Doc/tools/listmodules
@@ -53,7 +53,7 @@ def main():
opts, args = getopt.getopt(
args, "abchi:",
["annotate", "built-in", "categorize", "help", "ignore-from="])
- except getopt.error, msg:
+ except getopt.error as msg:
sys.stdout = sys.stderr
print msg
print