[pypy-commit] pypy refactor-str-types: Fix.
Manuel Jacob
noreply at buildbot.pypy.org
Mon Jul 29 17:17:22 CEST 2013
Author: Manuel Jacob
Branch: refactor-str-types
Changeset: r65792:33ad6ccc9a91
Date: 2013-07-29 16:18 +0200
http://bitbucket.org/pypy/pypy/changeset/33ad6ccc9a91/
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
@@ -207,7 +207,7 @@
def descr_contains(self, space, w_sub):
if space.isinstance_w(w_sub, space.w_unicode):
self_as_unicode = unicode_from_encoded_object(space, self, None, None)
- return space.newbool(self_as_unicode._value.find(self._op_val(space, w_sub)) >= 0)
+ return space.newbool(self_as_unicode._value.find(w_sub._value) >= 0)
return StringMethods.descr_contains(self, space, w_sub)
@unwrap_spec(count=int)
More information about the pypy-commit
mailing list