[pypy-svn] r64144 - pypy/branch/wip-fix-stackless-O2-pickling/pypy/interpreter

cfbolz at codespeak.net cfbolz at codespeak.net
Thu Apr 16 12:07:54 CEST 2009


Author: cfbolz
Date: Thu Apr 16 12:07:53 2009
New Revision: 64144

Modified:
   pypy/branch/wip-fix-stackless-O2-pickling/pypy/interpreter/unicodehelper.py
Log:
woops, forgot one


Modified: pypy/branch/wip-fix-stackless-O2-pickling/pypy/interpreter/unicodehelper.py
==============================================================================
--- pypy/branch/wip-fix-stackless-O2-pickling/pypy/interpreter/unicodehelper.py	(original)
+++ pypy/branch/wip-fix-stackless-O2-pickling/pypy/interpreter/unicodehelper.py	Thu Apr 16 12:07:53 2009
@@ -16,9 +16,15 @@
     def PyUnicode_AsEncodedString(data, encoding):
         import _codecs
         return _codecs.encode(data, encoding)
+
+    def PyUnicode_EncodeUTF8(data):
+        import _codecs
+        return _codecs.utf_8_encode(data)[0]
+
 ''')
 
 PyUnicode_DecodeUnicodeEscape = app.interphook('PyUnicode_DecodeUnicodeEscape')
 PyUnicode_DecodeRawUnicodeEscape = app.interphook('PyUnicode_DecodeRawUnicodeEscape')
 PyUnicode_DecodeUTF8 = app.interphook('PyUnicode_DecodeUTF8')
 PyUnicode_AsEncodedString = app.interphook('PyUnicode_AsEncodedString')
+PyUnicode_EncodeUTF8 = app.interphook('PyUnicode_EncodeUTF8') 



More information about the Pypy-commit mailing list