--- a/i18n/mki18n.py Tue Oct 02 17:18:09 2018 +0300
+++ b/i18n/mki18n.py Tue Oct 02 18:08:49 2018 +0300
@@ -486,7 +486,7 @@
exit_code = 1
try:
optionList, pargs = getopt.getopt(sys.argv[1:], validOptions, validLongOptions)
- except getopt.GetoptError, e:
+ except getopt.GetoptError as e:
printUsage(e[0])
sys.exit(1)
for (opt, val) in optionList:
@@ -512,7 +512,7 @@
try:
makePO(appDirPath, option['domain'], option['verbose'])
exit_code = 0
- except IOError, e:
+ except IOError as e:
printUsage(e[1] + '\n You must write a file app.fil that contains the list of all files to parse.')
if option['mo']:
makeMO(appDirPath, option['moTarget'], option['domain'], option['verbose'], option['forceEnglish'])