use py2/py3 compat except syntax. #1350.

This commit is contained in:
Takayuki Shimizukawa 2014-05-01 13:22:22 +09:00
parent 5fd8dc885f
commit b00d97a86f

View File

@ -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