diff options
author | Steve Slaven <bpk@hoopajoo.net> | 2009-07-23 19:43:00 (GMT) |
---|---|---|
committer | Steve Slaven <bpk@hoopajoo.net> | 2009-07-23 19:43:00 (GMT) |
commit | 5b74584e1b732603564f95560fdb304010a21404 (patch) | |
tree | fbf1dd446704dfcd4324477947592d543ee4f35c | |
parent | a62be67068f4a8386f55652906c3889315e19319 (diff) | |
download | fusearchive-5b74584e1b732603564f95560fdb304010a21404.zip fusearchive-5b74584e1b732603564f95560fdb304010a21404.tar.gz fusearchive-5b74584e1b732603564f95560fdb304010a21404.tar.bz2 |
Make key a non-string, since the digest is binary it could contain a _inflate-deflate-proof-of-concept
-rwxr-xr-x | fusearchive.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fusearchive.py b/fusearchive.py index 78b1c8c..9b6364f 100755 --- a/fusearchive.py +++ b/fusearchive.py @@ -98,11 +98,11 @@ def save_chunk( chunk ): break dmsg( 3, "Got chunk slot: " + str( sub ) ) - return( digest + "_" + str( sub ) ) + return( [ digest, sub ] ) # This will return a data block by key that was saved previously def load_chunk( key ): - ( hash, seq ) = key.split( '_' ) + ( hash, seq ) = key dmsg( 2, "Begin load_chunk" ) chars = list( hash ) |