reverted bad python binding change

This commit is contained in:
Arvid Norberg 2010-01-09 00:09:45 +00:00
parent 6fd9cc8535
commit ce18e3b907
1 changed files with 1 additions and 15 deletions

View File

@ -161,21 +161,7 @@ void replace_trackers(torrent_handle& h, object trackers)
if (entry == handle<>()) if (entry == handle<>())
break; break;
dict d; result.push_back(extract<announce_entry const&>(object(entry)));
d = extract<dict>(object(entry));
std::string url;
url = extract<std::string>(d["url"]);
announce_entry a(url);
if (d.has_key("tier"))
a.tier = extract<int>(d["tier"]);
if (d.has_key("fail_limit"))
a.fail_limit = extract<int>(d["fail_limit"]);
result.push_back(a);
} }
allow_threading_guard guard; allow_threading_guard guard;