aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2009-07-23 19:43:00 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2009-07-23 19:43:00 (GMT)
commit5b74584e1b732603564f95560fdb304010a21404 (patch)
treefbf1dd446704dfcd4324477947592d543ee4f35c
parenta62be67068f4a8386f55652906c3889315e19319 (diff)
downloadfusearchive-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-xfusearchive.py4
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 )