Enough changes to make allmydata.test.test_storage run on Python 3.

Still lots of failures, of course.
This commit is contained in:
Itamar Turner-Trauring
2020-08-27 15:19:49 -04:00
parent f998e0e752
commit c3494f1356
8 changed files with 20 additions and 11 deletions

View File

@ -1,4 +1,6 @@
"""Directory Node implementation."""
from past.builtins import unicode
import time
from zope.interface import implementer
@ -227,7 +229,7 @@ def pack_children(childrenx, writekey, deep_immutable=False):
return _pack_normalized_children(children, writekey=writekey, deep_immutable=deep_immutable)
ZERO_LEN_NETSTR=netstring('')
ZERO_LEN_NETSTR=netstring(b'')
def _pack_normalized_children(children, writekey, deep_immutable=False):
"""Take a dict that maps:
children[unicode_nfc_name] = (IFileSystemNode, metadata_dict)