From 249dff6014bc48ac5263e9d6417fda92e69d4410 Mon Sep 17 00:00:00 2001 From: arvidn Date: Thu, 14 Apr 2016 19:26:06 -0400 Subject: [PATCH] make dht_get_peers_reply_alert::peers a function in python binding --- bindings/python/src/alert.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/src/alert.cpp b/bindings/python/src/alert.cpp index 729bb4788..a39f7712f 100644 --- a/bindings/python/src/alert.cpp +++ b/bindings/python/src/alert.cpp @@ -772,6 +772,6 @@ void bind_alert() "dht_get_peers_reply_alert", no_init) .def_readonly("info_hash", &dht_get_peers_reply_alert::info_hash) .def("num_peers", &dht_get_peers_reply_alert::num_peers) - .add_property("peers", &dht_get_peers_reply_alert_peers) + .def("peers", &dht_get_peers_reply_alert_peers) ; }