cmd_receive: rename TwistedReceiver to just Receiver

This commit is contained in:
Brian Warner 2017-04-16 16:07:05 -04:00
parent 9dde091f2b
commit b4e39edb3f
2 changed files with 3 additions and 3 deletions

View File

@ -33,10 +33,10 @@ def receive(args, reactor=reactor):
* TransferError: the sender rejected the transfer: verifier mismatch
* any other error: something unexpected happened
"""
return TwistedReceiver(args, reactor).go()
return Receiver(args, reactor).go()
class TwistedReceiver:
class Receiver:
def __init__(self, args, reactor=reactor):
assert isinstance(args.relay_url, type(u""))
self.args = args

View File

@ -831,7 +831,7 @@ class ExtractFile(unittest.TestCase):
def test_filenames(self):
args = mock.Mock()
args.relay_url = ""
ef = cmd_receive.TwistedReceiver(args)._extract_file
ef = cmd_receive.Receiver(args)._extract_file
extract_dir = os.path.abspath(self.mktemp())
zf = mock.Mock()