[pypy-commit] pypy default: remove a remnant of string exceptions

cfbolz pypy.commits at gmail.com
Tue Oct 25 05:56:26 EDT 2016


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: 
Changeset: r87928:c718d8365b78
Date: 2016-10-25 11:55 +0200
http://bitbucket.org/pypy/pypy/changeset/c718d8365b78/

Log:	remove a remnant of string exceptions

diff --git a/pypy/interpreter/error.py b/pypy/interpreter/error.py
--- a/pypy/interpreter/error.py
+++ b/pypy/interpreter/error.py
@@ -73,11 +73,8 @@
             exc_value = str(w_value)
         else:
             w = space.wrap
-            if space.is_w(space.type(self.w_type), space.w_str):
-                exc_typename = space.str_w(self.w_type)
-            else:
-                exc_typename = space.str_w(
-                    space.getattr(self.w_type, w('__name__')))
+            exc_typename = space.str_w(
+                space.getattr(self.w_type, w('__name__')))
             if space.is_w(w_value, space.w_None):
                 exc_value = ""
             else:


More information about the pypy-commit mailing list