From b0432627b19a253e28a7947393c087b861d8842b Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 8 Jun 2011 08:37:01 +0000 Subject: [PATCH] python binding fix (still doesn't work with msvc9) --- bindings/python/src/session.cpp | 2 +- bindings/python/src/torrent_info.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/python/src/session.cpp b/bindings/python/src/session.cpp index b15560b73..56646889f 100644 --- a/bindings/python/src/session.cpp +++ b/bindings/python/src/session.cpp @@ -146,7 +146,7 @@ namespace { // torrent_info objects are always held by an intrusive_ptr in the python binding if (params.has_key("ti")) - p.ti = extract(params["ti"]); + p.ti = extract >(params["ti"]); std::string url; if (params.has_key("tracker_url")) diff --git a/bindings/python/src/torrent_info.cpp b/bindings/python/src/torrent_info.cpp index 23056eedf..96ceb36fa 100644 --- a/bindings/python/src/torrent_info.cpp +++ b/bindings/python/src/torrent_info.cpp @@ -135,10 +135,10 @@ void bind_torrent_info() class_ >("torrent_info", no_init) #ifndef TORRENT_NO_DEPRECATE - .def(init((arg("e"), arg("flags") = 0))) + .def(init(arg("e"))) #endif .def(init((arg("info_hash"), arg("flags") = 0))) - .def(init((arg("file"), arg("flags") = 0))) + .def(init((arg("buffer"), arg("length"), arg("flags") = 0))) .def(init((arg("file"), arg("flags") = 0))) .def(init((arg("ti"), arg("flags") = 0))) #if TORRENT_USE_WSTRING