remove several leftover defintions of netstring()

This commit is contained in:
Brian Warner 2007-06-07 22:13:18 -07:00
parent 6df5c856ac
commit f62a544b93
4 changed files with 0 additions and 12 deletions

View File

@ -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):

View File

@ -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

View File

@ -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)

View File

@ -254,9 +254,6 @@ class FileUploader:
)
def netstring(s):
return "%d:%s," % (len(s), s)
class FileName:
implements(IUploadable)
def __init__(self, filename):