directories: fix semantic conflict between my "keep track of position" optimization patch and Kevan's "cache serialized entries" optimization patch

This commit is contained in:
Zooko O'Whielacronx 2009-07-09 20:20:28 -07:00
parent 44c652fbbe
commit 34213cd2c7

View 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: