diff --git a/bindings/python/src/alert.cpp b/bindings/python/src/alert.cpp index 542a8d754..23bed941a 100644 --- a/bindings/python/src/alert.cpp +++ b/bindings/python/src/alert.cpp @@ -18,7 +18,7 @@ std::string get_buffer(read_piece_alert const& rpa) tuple endpoint_to_tuple(tcp::endpoint const& ep) { - return make_tuple(ep.address().to_string(), ep.port()); + return boost::python::make_tuple(ep.address().to_string(), ep.port()); } tuple peer_alert_ip(peer_alert const& pa) diff --git a/bindings/python/src/peer_info.cpp b/bindings/python/src/peer_info.cpp index 377087a14..23ec5a3bc 100644 --- a/bindings/python/src/peer_info.cpp +++ b/bindings/python/src/peer_info.cpp @@ -34,12 +34,12 @@ str get_country(peer_info const& pi) tuple get_local_endpoint(peer_info const& pi) { - return make_tuple(pi.local_endpoint.address().to_string(), pi.local_endpoint.port()); + return boost::python::make_tuple(pi.local_endpoint.address().to_string(), pi.local_endpoint.port()); } tuple get_ip(peer_info const& pi) { - return make_tuple(pi.ip.address().to_string(), pi.ip.port()); + return boost::python::make_tuple(pi.ip.address().to_string(), pi.ip.port()); } list get_pieces(peer_info const& pi)