changeset 25660 | 328739ea70c3 |
parent 24306 | 6ddc86eedc3b |
child 29485 | 6a98f9408a50 |
--- a/i18n/polib.py Tue Jun 23 22:38:21 2015 -0700 +++ b/i18n/polib.py Tue Jun 23 22:20:08 2015 -0700 @@ -1276,7 +1276,7 @@ (action, state) = self.transitions[(symbol, self.current_state)] if action(): self.current_state = state - except Exception, exc: + except Exception as exc: raise IOError('Syntax error in po file (line %s)' % linenum) # state handlers