Rev4017, Fix Bigfile test, Python 3.4 compatibility
This commit is contained in:
parent
60405bf222
commit
a82ee338ef
3 changed files with 6 additions and 3 deletions
|
@ -264,7 +264,10 @@ class ContentManagerPlugin(object):
|
|||
file_out.close()
|
||||
|
||||
mt.make_tree()
|
||||
return mt.get_merkle_root(), piece_size, {
|
||||
merkle_root = mt.get_merkle_root()
|
||||
if type(merkle_root) is bytes: # Python <3.5
|
||||
merkle_root = merkle_root.decode()
|
||||
return merkle_root, piece_size, {
|
||||
"sha512_pieces": piece_hashes
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue