mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
additional fixes for python3
This commit is contained in:
parent
70bc472ffe
commit
34fa18f04e
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# account_analysis.py -- Output all the credits and debits on an account
|
||||
#
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
## @file
|
||||
# @brief Output all the credits and debits on an account
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
##@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.")
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# test_imbalance_transaction.py -- Test the transaction imbalace viewing
|
||||
# mechanisms
|
||||
|
Loading…
Reference in New Issue
Block a user