diff -r d60678a567a9 -r 328739ea70c3 i18n/polib.py --- 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