Author: Richard Plangger <planri...@gmail.com>
Branch: py3.5
Changeset: r87855:3253f05f8a2b
Date: 2016-10-18 10:46 +0200
http://bitbucket.org/pypy/pypy/changeset/3253f05f8a2b/

Log:    translation fix: remove decode call to type(...).name

diff --git a/pypy/interpreter/baseobjspace.py b/pypy/interpreter/baseobjspace.py
--- a/pypy/interpreter/baseobjspace.py
+++ b/pypy/interpreter/baseobjspace.py
@@ -297,7 +297,7 @@
         if space.is_w(space.type(w_result), space.w_int):
             return w_result
         if space.isinstance_w(w_result, space.w_int):
-            tp = space.type(w_result).name.decode('utf-8')
+            tp = space.type(w_result).name
             space.warn(space.wrap(
                 "__int__ returned non-int (type %s).  "
                 "The ability to return an instance of a strict subclass of int 
"
diff --git a/pypy/objspace/descroperation.py b/pypy/objspace/descroperation.py
--- a/pypy/objspace/descroperation.py
+++ b/pypy/objspace/descroperation.py
@@ -483,7 +483,7 @@
         if space.is_w(space.type(w_result), space.w_int):
             return w_result
         if space.isinstance_w(w_result, space.w_int):
-            tp = space.type(w_result).name.decode('utf-8')
+            tp = space.type(w_result).name
             space.warn(space.wrap(
                 "__index__ returned non-int (type %s).  "
                 "The ability to return an instance of a strict subclass of int 
"
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to