[pypy-commit] pypy type-specialized-instances: these lines are now unnecessary

l.diekmann noreply at buildbot.pypy.org
Wed Feb 1 13:56:16 CET 2012


Author: l.diekmann
Branch: type-specialized-instances
Changeset: r52014:ce9d7cbdddfb
Date: 2012-02-01 12:56 +0000
http://bitbucket.org/pypy/pypy/changeset/ce9d7cbdddfb/

Log:	these lines are now unnecessary

diff --git a/pypy/objspace/std/mapdict.py b/pypy/objspace/std/mapdict.py
--- a/pypy/objspace/std/mapdict.py
+++ b/pypy/objspace/std/mapdict.py
@@ -39,12 +39,7 @@
         attr = self.findmap(selector)
         if attr is None:
             return self.terminator._write_terminator(obj, selector, w_value)
-        try:
-            attr.write_attr(obj, w_value)
-        except OperationError, e:
-            if not e.match(self.space, self.space.w_TypeError):
-                raise
-            self._replace(obj, selector, w_value)
+        attr.write_attr(obj, w_value)
         return True
 
     def _replace(self, obj, selector, w_value):


More information about the pypy-commit mailing list