[pypy-commit] pypy py3.6: remove repeated function

cfbolz pypy.commits at gmail.com
Wed Jan 1 10:54:21 EST 2020


Author: Carl Friedrich Bolz-Tereick <cfbolz at gmx.de>
Branch: py3.6
Changeset: r98433:11484c9b7bd0
Date: 2020-01-01 16:52 +0100
http://bitbucket.org/pypy/pypy/changeset/11484c9b7bd0/

Log:	remove repeated function

diff --git a/pypy/interpreter/baseobjspace.py b/pypy/interpreter/baseobjspace.py
--- a/pypy/interpreter/baseobjspace.py
+++ b/pypy/interpreter/baseobjspace.py
@@ -1740,16 +1740,6 @@
     def utf8_w(self, w_obj):
         return w_obj.utf8_w(self)
 
-    def utf8_0_w(self, w_obj):
-        "Like utf_w, but rejects strings with NUL bytes."
-        from rpython.rlib import rstring
-        result = w_obj.utf8_w(self)
-        if '\x00' in result:
-            raise oefmt(self.w_TypeError,
-                        "argument must be a string without NUL "
-                        "characters")
-        return rstring.assert_str0(result)
-
     def convert_to_w_unicode(self, w_obj):
         return w_obj.convert_to_w_unicode(self)
 


More information about the pypy-commit mailing list