mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-03-10 22:43:52 +00:00
move DownloadStopped from download.common to interfaces
This commit is contained in:
parent
425152c34e
commit
748e419a9b
@ -8,6 +8,3 @@ class WrongSegmentError(Exception):
|
|||||||
pass
|
pass
|
||||||
class BadCiphertextHashError(Exception):
|
class BadCiphertextHashError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class DownloadStopped(Exception):
|
|
||||||
pass
|
|
||||||
|
@ -7,8 +7,9 @@ from twisted.internet.interfaces import IPushProducer
|
|||||||
from foolscap.api import eventually
|
from foolscap.api import eventually
|
||||||
from allmydata.util import log
|
from allmydata.util import log
|
||||||
from allmydata.util.spans import overlap
|
from allmydata.util.spans import overlap
|
||||||
|
from allmydata.interfaces import DownloadStopped
|
||||||
|
|
||||||
from common import BadSegmentNumberError, WrongSegmentError, DownloadStopped
|
from common import BadSegmentNumberError, WrongSegmentError
|
||||||
|
|
||||||
class Segmentation:
|
class Segmentation:
|
||||||
"""I am responsible for a single offset+size read of the file. I handle
|
"""I am responsible for a single offset+size read of the file. I handle
|
||||||
|
@ -1055,6 +1055,9 @@ class NotEnoughSharesError(Exception):
|
|||||||
class NoSharesError(Exception):
|
class NoSharesError(Exception):
|
||||||
"""Download was unable to get any shares at all."""
|
"""Download was unable to get any shares at all."""
|
||||||
|
|
||||||
|
class DownloadStopped(Exception):
|
||||||
|
pass
|
||||||
|
|
||||||
class UploadUnhappinessError(Exception):
|
class UploadUnhappinessError(Exception):
|
||||||
"""Upload was unable to satisfy 'servers_of_happiness'"""
|
"""Upload was unable to satisfy 'servers_of_happiness'"""
|
||||||
|
|
||||||
|
@ -13,9 +13,10 @@ from allmydata.util.consumer import download_to_data, MemoryConsumer
|
|||||||
from allmydata.immutable import upload, layout
|
from allmydata.immutable import upload, layout
|
||||||
from allmydata.test.no_network import GridTestMixin, NoNetworkServer
|
from allmydata.test.no_network import GridTestMixin, NoNetworkServer
|
||||||
from allmydata.test.common import ShouldFailMixin
|
from allmydata.test.common import ShouldFailMixin
|
||||||
from allmydata.interfaces import NotEnoughSharesError, NoSharesError
|
from allmydata.interfaces import NotEnoughSharesError, NoSharesError, \
|
||||||
|
DownloadStopped
|
||||||
from allmydata.immutable.downloader.common import BadSegmentNumberError, \
|
from allmydata.immutable.downloader.common import BadSegmentNumberError, \
|
||||||
BadCiphertextHashError, DownloadStopped, COMPLETE, OVERDUE, DEAD
|
BadCiphertextHashError, COMPLETE, OVERDUE, DEAD
|
||||||
from allmydata.immutable.downloader.status import DownloadStatus
|
from allmydata.immutable.downloader.status import DownloadStatus
|
||||||
from allmydata.immutable.downloader.fetcher import SegmentFetcher
|
from allmydata.immutable.downloader.fetcher import SegmentFetcher
|
||||||
from allmydata.codec import CRSDecoder
|
from allmydata.codec import CRSDecoder
|
||||||
|
Loading…
x
Reference in New Issue
Block a user