$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r54867 - sandbox-branches/bhy/py3k/libs/python/test
From: divinekid_at_[hidden]
Date: 2009-07-10 13:35:29
Author: bhy
Date: 2009-07-10 13:35:29 EDT (Fri, 10 Jul 2009)
New Revision: 54867
URL: http://svn.boost.org/trac/boost/changeset/54867
Log:
fix str.cpp for str test case
Text files modified: 
   sandbox-branches/bhy/py3k/libs/python/test/str.cpp |     5 +++++                                   
   1 files changed, 5 insertions(+), 0 deletions(-)
Modified: sandbox-branches/bhy/py3k/libs/python/test/str.cpp
==============================================================================
--- sandbox-branches/bhy/py3k/libs/python/test/str.cpp	(original)
+++ sandbox-branches/bhy/py3k/libs/python/test/str.cpp	2009-07-10 13:35:29 EDT (Fri, 10 Jul 2009)
@@ -26,8 +26,13 @@
     print(data.capitalize());
     print('[' + data.center(30) + ']');
     print(data.count("t"));
+#if PY_VERSION_HEX < 0x03000000
     print(data.encode("utf-8"));
     print(data.decode("utf-8"));
+#else
+    print(data.encode("utf-8").attr("decode")("utf-8"));
+    print(data.encode("utf-8").attr("decode")("utf-8"));
+#endif
     
     BOOST_ASSERT(!data.endswith("xx"));
     BOOST_ASSERT(!data.startswith("test"));