[pypy-commit] pypy refactor-str-types: Fix.
Manuel Jacob
noreply at buildbot.pypy.org
Fri Jul 26 22:36:50 CEST 2013
Author: Manuel Jacob
Branch: refactor-str-types
Changeset: r65697:9f6ccdf73b59
Date: 2013-07-26 18:07 +0200
http://bitbucket.org/pypy/pypy/changeset/9f6ccdf73b59/
Log: Fix.
diff --git a/pypy/objspace/std/bytesobject.py b/pypy/objspace/std/bytesobject.py
--- a/pypy/objspace/std/bytesobject.py
+++ b/pypy/objspace/std/bytesobject.py
@@ -189,13 +189,13 @@
def _startswith(self, space, value, w_prefix, start, end):
if space.isinstance_w(w_prefix, space.w_unicode):
self_as_unicode = unicode_from_encoded_object(space, self, None, None)
- return self_as_unicode._startswith(space, value, w_prefix, start, end)
+ return self_as_unicode._startswith(space, self_as_unicode._value, w_prefix, start, end)
return StringMethods._startswith(self, space, value, w_prefix, start, end)
def _endswith(self, space, value, w_suffix, start, end):
if space.isinstance_w(w_suffix, space.w_unicode):
self_as_unicode = unicode_from_encoded_object(space, self, None, None)
- return self_as_unicode._endswith(space, value, w_suffix, start, end)
+ return self_as_unicode._endswith(space, self_as_unicode._value, w_suffix, start, end)
return StringMethods._endswith(self, space, value, w_suffix, start, end)
def _join_return_one(self, space, w_obj):
More information about the pypy-commit
mailing list