diff options
author | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2014-05-01 13:22:22 +0900 |
---|---|---|
committer | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2014-05-01 13:22:22 +0900 |
commit | b00d97a86f4b99f14bd9e8d0ca63dc36df7d1627 (patch) | |
tree | cbfa3a0e446f0ec98cbf440b4a436671d999d123 /sphinx/cmdline.py | |
parent | 5fd8dc885f4851b6a84be8817dff99508f328e25 (diff) | |
download | sphinx-git-b00d97a86f4b99f14bd9e8d0ca63dc36df7d1627.tar.gz |
use py2/py3 compat except syntax. #1350.
Diffstat (limited to 'sphinx/cmdline.py')
-rw-r--r-- | sphinx/cmdline.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/cmdline.py b/sphinx/cmdline.py index ba1dc6c24..6e94ffbe2 100644 --- a/sphinx/cmdline.py +++ b/sphinx/cmdline.py @@ -89,7 +89,7 @@ def main(argv): try: opts, args = getopt.getopt(argv[1:], 'ab:t:d:c:CD:A:nNEqQWw:PThvj:', ['help', 'version']) - except getopt.error, err: + except getopt.error as err: usage(argv, 'Error: %s' % err) return 1 |