directories: fix semantic conflict between my "keep track of position" optimization...
authorZooko O'Whielacronx <zooko@zooko.com>
Fri, 10 Jul 2009 03:20:28 +0000 (20:20 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Fri, 10 Jul 2009 03:20:28 +0000 (20:20 -0700)
src/allmydata/dirnode.py

index 67dde0761ec7e3162710397ca88e9b0c37aecf7c..e85a5dea50624bc2a8e9ba0b96f0c7952c9d64b0 100644 (file)
@@ -230,7 +230,8 @@ class NewDirectoryNode:
         position = 0
         while position < len(data):
             entries, position = split_netstring(data, 1, position)
-            (name, rocap, rwcapdata, metadata_s), subpos = split_netstring(entries[0], 4)
+            entry = entries[0]
+            (name, rocap, rwcapdata, metadata_s), subpos = split_netstring(entry, 4)
             name = name.decode("utf-8")
             rwcap = None
             if writeable: