Change sha1_hash __init__ to use a std::string
This fixes compatibility with Python 3's bytes object.
This commit is contained in:
parent
c6cc71688a
commit
95be0137d5
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue