mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 07:06:41 +00:00
remove several leftover defintions of netstring()
This commit is contained in:
parent
6df5c856ac
commit
f62a544b93
@ -569,9 +569,6 @@ class FileDownloader:
|
||||
return self._output.finish()
|
||||
|
||||
|
||||
def netstring(s):
|
||||
return "%d:%s," % (len(s), s)
|
||||
|
||||
class FileName:
|
||||
implements(IDownloadTarget)
|
||||
def __init__(self, filename):
|
||||
|
@ -10,9 +10,6 @@ from allmydata.util.assertutil import _assert
|
||||
from allmydata.codec import CRSEncoder
|
||||
from allmydata.interfaces import IEncoder
|
||||
|
||||
def netstring(s):
|
||||
return "%d:%s," % (len(s), s)
|
||||
|
||||
"""
|
||||
|
||||
The goal of the encoder is to turn the original file into a series of
|
||||
|
@ -9,9 +9,6 @@ from allmydata.uri import pack_uri
|
||||
from allmydata.Crypto.Cipher import AES
|
||||
from cStringIO import StringIO
|
||||
|
||||
def netstring(s):
|
||||
return "%d:%s," % (len(s), s)
|
||||
|
||||
class FakePeer:
|
||||
def __init__(self, mode="good"):
|
||||
self.ss = FakeStorageServer(mode)
|
||||
|
@ -254,9 +254,6 @@ class FileUploader:
|
||||
)
|
||||
|
||||
|
||||
def netstring(s):
|
||||
return "%d:%s," % (len(s), s)
|
||||
|
||||
class FileName:
|
||||
implements(IUploadable)
|
||||
def __init__(self, filename):
|
||||
|
Loading…
Reference in New Issue
Block a user