Merge pull request #215 from aresch/patch-2

Change sha1_hash __init__ to use a std::string
This commit is contained in:
Arvid Norberg 2015-10-09 18:56:43 -04:00
commit a5010fd7af
2 changed files with 2 additions and 1 deletions

View File

@ -88,6 +88,7 @@
to connect be timed out (introduced in the vulnerability path)
* fixed falling back to sending UDP packets direct when socks proxy fails
* fixed total_wanted bug (when setting file priorities in add_torrent_params)
* fix python3 compatibility with sha1_hash
1.0.6 release

View File

@ -28,7 +28,7 @@ void bind_sha1_hash()
.def(self != self)
.def(self < self)
.def(self_ns::str(self))
.def(init<char const*>())
.def(init<std::string>())
.def("clear", &sha1_hash::clear)
.def("is_all_zeros", &sha1_hash::is_all_zeros)
.def("to_string", &sha1_hash::to_string)