mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-23 01:08:53 +00:00
mutable WIP: split mutable.py into separate files. All tests pass.
This commit is contained in:
@ -4,7 +4,8 @@ import os, time
|
||||
from zope.interface import implements
|
||||
from twisted.internet import defer
|
||||
import simplejson
|
||||
from allmydata.mutable import NotMutableError
|
||||
from allmydata.mutable.common import NotMutableError
|
||||
from allmydata.mutable.node import MutableFileNode
|
||||
from allmydata.interfaces import IMutableFileNode, IDirectoryNode,\
|
||||
IURI, IFileNode, IMutableFileURI, IVerifierURI, IFilesystemNode
|
||||
from allmydata.util import hashutil
|
||||
@ -12,8 +13,6 @@ from allmydata.util.hashutil import netstring
|
||||
from allmydata.uri import NewDirectoryURI
|
||||
from pycryptopp.cipher.aes import AES
|
||||
|
||||
from allmydata.mutable import MutableFileNode
|
||||
|
||||
def split_netstring(data, numstrings, allow_leftover=False):
|
||||
"""like string.split(), but extracts netstrings. If allow_leftover=False,
|
||||
returns numstrings elements, and throws ValueError if there was leftover
|
||||
|
Reference in New Issue
Block a user