2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 06:02:14 +00:00

remove decode() method in str wrapper for py3k

[SVN r54862]
This commit is contained in:
Haoyu Bai
2009-07-10 16:47:17 +00:00
parent c6bb65197f
commit 0536dad8ab
2 changed files with 6 additions and 0 deletions

View File

@@ -37,10 +37,12 @@ namespace detail
long count(object_cref sub, object_cref start, object_cref end) const;
#if PY_VERSION_HEX < 0x03000000
object decode() const;
object decode(object_cref encoding) const;
object decode(object_cref encoding, object_cref errors) const;
#endif
object encode() const;
object encode(object_cref encoding) const;
@@ -185,6 +187,7 @@ class str : public detail::str_base
return base::count(object(sub), object(start));
}
#if PY_VERSION_HEX < 0x03000000
object decode() const { return base::decode(); }
template<class T>
@@ -198,6 +201,7 @@ class str : public detail::str_base
{
return base::decode(object(encoding),object(errors));
}
#endif
object encode() const { return base::encode(); }