From b4e39edb3fd38bbd7bbcc0e63493e493d8e1f8d8 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Sun, 16 Apr 2017 16:07:05 -0400 Subject: [PATCH] cmd_receive: rename TwistedReceiver to just Receiver --- src/wormhole/cli/cmd_receive.py | 4 ++-- src/wormhole/test/test_cli.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wormhole/cli/cmd_receive.py b/src/wormhole/cli/cmd_receive.py index eae17a0..96f31de 100644 --- a/src/wormhole/cli/cmd_receive.py +++ b/src/wormhole/cli/cmd_receive.py @@ -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 diff --git a/src/wormhole/test/test_cli.py b/src/wormhole/test/test_cli.py index b963d10..80e4088 100644 --- a/src/wormhole/test/test_cli.py +++ b/src/wormhole/test/test_cli.py @@ -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()