Change sha1_hash __init__ to use a std::string

This fixes compatibility with Python 3's bytes object.
This commit is contained in:
Andrew Resch 2015-10-08 23:08:12 -07:00
parent c6cc71688a
commit 95be0137d5
1 changed files with 1 additions and 1 deletions

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)