From 5b74584e1b732603564f95560fdb304010a21404 Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Thu, 23 Jul 2009 12:43:00 -0700 Subject: Make key a non-string, since the digest is binary it could contain a _ 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 ) -- cgit v0.10.2