additional fixes for python3

This commit is contained in:
Christoph Holtermann 2018-09-21 09:27:17 +02:00
parent 70bc472ffe
commit 34fa18f04e
5 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# account_analysis.py -- Output all the credits and debits on an account
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
## @file
# @brief Output all the credits and debits on an account

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
##@file

View File

@ -179,7 +179,7 @@ def main(argv=None):
try:
opts, args = getopt.getopt(argv[1:], "fhiln:po:", ["help"])
except getopt.error, msg:
except getopt.error as msg:
raise Usage(msg)
for opt in opts:
@ -207,12 +207,12 @@ def main(argv=None):
if len(args)==0:
raise Usage("No input given !")
input_url = args[0]
except Usage, err:
except Usage as err:
if err.msg == "Help:":
retcode=0
else:
print(>>sys.stderr, "Error:",err.msg)
print(>>sys.stderr, "for help use --help")
print("Error:", err.msg, file=sys.stderr)
print("for help use --help", file=sys.stderr)
retcode=2
print("Generate a LaTeX invoice or print out all invoices.")

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# test_imbalance_transaction.py -- Test the transaction imbalace viewing
# mechanisms