[pypy-svn] r57224 - pypy/branch/2.5-features/pypy/module/_codecs
bgola at codespeak.net
bgola at codespeak.net
Wed Aug 13 15:54:16 CEST 2008
Author: bgola
Date: Wed Aug 13 15:54:16 2008
New Revision: 57224
Modified:
pypy/branch/2.5-features/pypy/module/_codecs/interp_codecs.py
Log:
new behavior for codec search functions
Modified: pypy/branch/2.5-features/pypy/module/_codecs/interp_codecs.py
==============================================================================
--- pypy/branch/2.5-features/pypy/module/_codecs/interp_codecs.py (original)
+++ pypy/branch/2.5-features/pypy/module/_codecs/interp_codecs.py Wed Aug 13 15:54:16 2008
@@ -96,7 +96,7 @@
w_result = space.call_function(w_search,
space.wrap(normalized_encoding))
if not space.is_w(w_result, space.w_None):
- if not (space.is_true(space.is_(space.type(w_result),
+ if not (space.is_true(space.isinstance(w_result,
space.w_tuple)) and
space.int_w(space.len(w_result)) == 4):
raise OperationError(
More information about the Pypy-commit
mailing list