[exceptions] don't use dict.iteritems

Related to #267910.

authorJulien Cristau <julien.cristau@logilab.fr>
changesete092f2799bfc
branchdefault
phasedraft
hiddenyes
parent revision#9ec07467c3fe [reader] py3k removed execfile
child revision#6e198fcda807 [buildobjs] deal with py3k's dict method changes
files modified by this revision
_exceptions.py
# HG changeset patch
# User Julien Cristau <julien.cristau@logilab.fr>
# Date 1413450024 -7200
# Thu Oct 16 11:00:24 2014 +0200
# Node ID e092f2799bfc35543476cd17fdba66d6d7b74f6e
# Parent 9ec07467c3fe92d42272b6df492bca72c1985406
[exceptions] don't use dict.iteritems

Related to #267910.

diff --git a/_exceptions.py b/_exceptions.py
@@ -120,11 +120,11 @@
1          self._translated = True
2          if self.msgargs is not None:
3              if self.i18nvalues:
4                  for key in self.i18nvalues:
5                      self.msgargs[key] = _(self.msgargs[key])
6 -            for key, msg in self.errors.iteritems():
7 +            for key, msg in self.errors.items():
8                  msg = _(msg)
9                  if key is not None:
10                      msg = msg.replace('%(KEY-', '%('+key+'-')
11                  self.errors[key] = msg % self.msgargs
12