[pypy-svn] r14032 - pypy/dist/pypy/objspace/std

ac at codespeak.net ac at codespeak.net
Fri Jul 1 17:20:53 CEST 2005


Author: ac
Date: Fri Jul  1 17:20:53 2005
New Revision: 14032

Modified:
   pypy/dist/pypy/objspace/std/unicodetype.py
Log:
Do not special case buffer objects to work with faked codec module.



Modified: pypy/dist/pypy/objspace/std/unicodetype.py
==============================================================================
--- pypy/dist/pypy/objspace/std/unicodetype.py	(original)
+++ pypy/dist/pypy/objspace/std/unicodetype.py	Fri Jul  1 17:20:53 2005
@@ -46,9 +46,6 @@
 import codecs, sys
 
 def unicode_from_encoded_object(obj, encoding, errors):
-    # Fix later for buffer
-    if type(obj).__name__ == 'buffer':
-        obj = str(obj)
     if encoding is None:
         encoding = sys.getdefaultencoding()
     decoder = codecs.getdecoder(encoding)



More information about the Pypy-commit mailing list