[exceptions] don't use dict.iteritems

Related to #267910.

authorJulien Cristau <julien.cristau@logilab.fr>
changeset3078efd1abb0
branchdefault
phasepublic
hiddenno
parent revision#189b9a1ba775 [reader] py3k removed execfile
child revision#0b75574d2314 [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 3078efd1abb0609ff02119060b91d62aecac70e0
# Parent 189b9a1ba775f48d59c1d57e53c8b4c0396f7e21
[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