i18n.py
changeset 8695 358d8bed9626
parent 8620 61c4bdd70dd8
child 10589 7c23b7de2b8d
--- a/i18n.py	Thu Feb 14 15:39:23 2013 +0100
+++ b/i18n.py	Thu Feb 14 15:38:25 2013 +0100
@@ -101,10 +101,10 @@
             except OSError:
                 pass # suppose not exists
             execute2(['msgfmt', mergedpo, '-o', applmo])
-        except CalledProcessError, exc:
+        except CalledProcessError as exc:
             errors.append(u'while handling language %s:\ncmd:\n%s\nstdout:\n%s\nstderr:\n%s\n' %
                           (lang, exc.cmd, repr(exc.data[0]), repr(exc.data[1])))
-        except Exception, exc:
+        except Exception as exc:
             errors.append(u'while handling language %s: %s' % (lang, exc))
         try:
             # clean everything