aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-06-14 16:36:21 +0000
committerAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-06-14 16:36:21 +0000
commit49b127e8b30936c6af5ee1d402f7c12d95e1db1e (patch)
tree89dd9e7cc47443d19cc90981b18375477aa2a9a5
parenta27b3696dae1f25957dfbc036517e00a4cdbbd81 (diff)
downloadpaludis-49b127e8b30936c6af5ee1d402f7c12d95e1db1e.tar.gz
paludis-49b127e8b30936c6af5ee1d402f7c12d95e1db1e.tar.xz
(python) Fix function naming.
-rw-r--r--python/name.cc4
-rw-r--r--python/package_database.cc2
-rwxr-xr-xpython/paludis_python.hh4
-rw-r--r--python/version_requirements.cc2
4 files changed, 6 insertions, 6 deletions
diff --git a/python/name.cc b/python/name.cc
index 6c32847..0df086c 100644
--- a/python/name.cc
+++ b/python/name.cc
@@ -138,7 +138,7 @@ void PALUDIS_VISIBLE expose_name()
qpn.def(bp::init<const CategoryNamePart &, const PackageNamePart &>());
qpn.def_readwrite("category", &QualifiedPackageName::category);
qpn.def_readwrite("package", &QualifiedPackageName::package);
- qpn.def("__cmp__", &__cmp__<QualifiedPackageName>);
+ qpn.def("__cmp__", &py_cmp<QualifiedPackageName>);
qpn.def(bp::self_ns::str(bp::self));
bp::implicitly_convertible<std::string, QualifiedPackageName>();
@@ -154,7 +154,7 @@ void PALUDIS_VISIBLE expose_name()
bp::init<const std::string &, IUseFlagParseMode>("__init__(string, IUseFlagParseMode")
);
iuf.def(bp::init<const UseFlagName &, const UseFlagState &>("__init__(UseFlagName, UseFlagState)"));
- iuf.def("__cmp__", &__cmp__<IUseFlag>);
+ iuf.def("__cmp__", &py_cmp<IUseFlag>);
iuf.def(bp::self_ns::str(bp::self));
iuf.def_readwrite("flag", &IUseFlag::flag,
"[rw] UseFlagName"
diff --git a/python/package_database.cc b/python/package_database.cc
index 1173cf0..4ebc26f 100644
--- a/python/package_database.cc
+++ b/python/package_database.cc
@@ -96,7 +96,7 @@ void PALUDIS_VISIBLE expose_package_database()
);
pde.def(bp::self_ns::str(bp::self));
pde.def("__eq__", &PackageDatabaseEntry::operator==);
- pde.def("__ne__", &__ne__<PackageDatabaseEntry>);
+ pde.def("__ne__", &py_ne<PackageDatabaseEntry>);
class_collection<PackageDatabaseEntryCollection>
pdec("PackageDatabaseEntryCollection",
diff --git a/python/paludis_python.hh b/python/paludis_python.hh
index f14e172..2bb177a 100755
--- a/python/paludis_python.hh
+++ b/python/paludis_python.hh
@@ -94,7 +94,7 @@ namespace paludis
// Compare
template <typename T_>
- int __cmp__(T_ & a, T_ & b)
+ int py_cmp(T_ & a, T_ & b)
{
if (a == b)
return 0;
@@ -106,7 +106,7 @@ namespace paludis
// Not equal
template <typename T_>
- bool __ne__(T_ & a, T_ & b)
+ bool py_ne(T_ & a, T_ & b)
{
return ! (a == b);
}
diff --git a/python/version_requirements.cc b/python/version_requirements.cc
index feac2eb..79bb881 100644
--- a/python/version_requirements.cc
+++ b/python/version_requirements.cc
@@ -40,7 +40,7 @@ void PALUDIS_VISIBLE expose_version_requirements()
"[rw] VersionSpec"
);
vr.def("__eq__", &VersionRequirement::operator==);
- vr.def("__ne__", &__ne__<VersionRequirement>);
+ vr.def("__ne__", &py_ne<VersionRequirement>);
enum_auto("VersionRequirementsMode", last_vr);