From 65237a8ecfa6818202e54f15abe9e7790b0eb22b Mon Sep 17 00:00:00 2001 From: a1346054 <36859588+a1346054@users.noreply.github.com> Date: Wed, 25 Aug 2021 19:19:52 +0000 Subject: [PATCH] trim trailing whitespace --- NEWS.md | 1 - docs/api.md | 1 - docs/client-protocol.md | 2 -- docs/conf.py | 3 --- docs/introduction.md | 1 - docs/state-machines/Makefile | 3 +-- docs/state-machines/allocator.dot | 2 +- docs/state-machines/boss.dot | 1 - docs/state-machines/mailbox.dot | 2 +- docs/state-machines/nameplate.dot | 3 +-- docs/state-machines/order.dot | 2 +- docs/state-machines/send.dot | 2 +- docs/state-machines/terminator.dot | 3 +-- docs/tor.md | 2 +- docs/transit.md | 2 +- docs/w.dot | 2 +- docs/welcome.md | 2 +- misc/dump-timing.py | 1 - misc/web/timeline.js | 2 +- pyi/build-exe | 1 - setup.cfg | 2 +- src/wormhole/errors.py | 2 +- src/wormhole/test/dilate/test_connect.py | 2 -- src/wormhole/test/dilate/test_manager.py | 1 - 24 files changed, 14 insertions(+), 31 deletions(-) diff --git a/NEWS.md b/NEWS.md index 3ef31f1..a142bfa 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,3 @@ - User-visible changes in "magic-wormhole": ## Release 0.12.0 (04-Apr-2020) diff --git a/docs/api.md b/docs/api.md index e6c24e8..f06df4f 100644 --- a/docs/api.md +++ b/docs/api.md @@ -699,4 +699,3 @@ w.send_message(msg) | | . | d=w.get_message() | dg.wormhole_got_message(msg) w.close() | | dg.wormhole_closed(result) . | d=w.close() | - diff --git a/docs/client-protocol.md b/docs/client-protocol.md index 64b1723..d98885d 100644 --- a/docs/client-protocol.md +++ b/docs/client-protocol.md @@ -62,5 +62,3 @@ message body will be the hex-encoded output of a NaCl `SecretBox`, keyed by a phase+side -specific key (computed with HKDF-SHA256, using the shared PAKE key as the secret input, and `wormhole:phase:%s%s % (SHA256(side), SHA256(phase))` as the CTXinfo), with a random nonce. - - diff --git a/docs/conf.py b/docs/conf.py index 8bb08de..2b27735 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -180,6 +180,3 @@ texinfo_documents = [ author, 'Magic-Wormhole', 'One line description of project.', 'Miscellaneous'), ] - - - diff --git a/docs/introduction.md b/docs/introduction.md index 2502f4f..2f462de 100644 --- a/docs/introduction.md +++ b/docs/introduction.md @@ -53,4 +53,3 @@ describes this application's use of the client messages. Application use the `wormhole` library to establish wormhole connections and exchange data through them. Please see `api.md` for a complete description of this interface. - diff --git a/docs/state-machines/Makefile b/docs/state-machines/Makefile index ea42875..7a71bb9 100644 --- a/docs/state-machines/Makefile +++ b/docs/state-machines/Makefile @@ -1,7 +1,6 @@ - default: images -images: allocator.png boss.png code.png input.png key.png lister.png machines.png mailbox.png nameplate.png order.png receive.png send.png terminator.png dilation.png +images: allocator.png boss.png code.png input.png key.png lister.png machines.png mailbox.png nameplate.png order.png receive.png send.png terminator.png dilation.png .PHONY: default images diff --git a/docs/state-machines/allocator.dot b/docs/state-machines/allocator.dot index 2e2e280..2209d9f 100644 --- a/docs/state-machines/allocator.dot +++ b/docs/state-machines/allocator.dot @@ -25,5 +25,5 @@ digraph { P_allocated -> S2 [color="orange"] S2 [label="S2:\ndone" color="orange"] - + } diff --git a/docs/state-machines/boss.dot b/docs/state-machines/boss.dot index 8e32899..12fe9c6 100644 --- a/docs/state-machines/boss.dot +++ b/docs/state-machines/boss.dot @@ -76,5 +76,4 @@ digraph { label="rx_welcome -> process (maybe rx_unwelcome)\nsend -> S.send\ngot_message -> got_version or got_phase\ngot_key -> W.got_key\ngot_verifier -> W.got_verifier\nallocate_code -> C.allocate_code\ninput_code -> C.input_code\nset_code -> C.set_code" ] - } diff --git a/docs/state-machines/mailbox.dot b/docs/state-machines/mailbox.dot index 9bcd964..ea31ea8 100644 --- a/docs/state-machines/mailbox.dot +++ b/docs/state-machines/mailbox.dot @@ -94,5 +94,5 @@ digraph { S0B -> P3B_done [label="close" color="red"] S1A -> P3A_done [label="close" color="red"] S2A -> S3A [label="close" color="red"] - + } diff --git a/docs/state-machines/nameplate.dot b/docs/state-machines/nameplate.dot index 8ddeabd..2eaa86e 100644 --- a/docs/state-machines/nameplate.dot +++ b/docs/state-machines/nameplate.dot @@ -22,7 +22,7 @@ digraph { S1B -> S2B [style="invis"] {rank=same; S1A S1B} S1A -> S1B [style="invis"] - + {rank=same; S2A P2_connected S2B} S2A [label="S2A:\nmaybe claimed"] S2A -> P2_connected [label="connected"] @@ -96,6 +96,5 @@ digraph { S2B -> P3_release [label="close" color="red"] S3B -> P3_release [label="close" color="red"] S4B -> S4B [label="close" color="red"] - } diff --git a/docs/state-machines/order.dot b/docs/state-machines/order.dot index 202bc10..94a5edf 100644 --- a/docs/state-machines/order.dot +++ b/docs/state-machines/order.dot @@ -21,7 +21,7 @@ digraph { P1_other [shape="box" label="R.got_message"] P1_other -> S1 - + /* the Mailbox will deliver each message exactly once, but doesn't guarantee ordering: if Alice starts the process, then disconnects, then Bob starts (reading PAKE, sending both his PAKE and his VERSION diff --git a/docs/state-machines/send.dot b/docs/state-machines/send.dot index 91ed067..2dd3668 100644 --- a/docs/state-machines/send.dot +++ b/docs/state-machines/send.dot @@ -3,7 +3,7 @@ digraph { {rank=same; S0 P0_queue} {rank=same; S1 P1_send} - + S0 [label="S0: unknown\nkey"] S0 -> P0_queue [label="send" style="dotted"] P0_queue [shape="box" label="queue" style="dotted"] diff --git a/docs/state-machines/terminator.dot b/docs/state-machines/terminator.dot index 749eb3c..7703648 100644 --- a/docs/state-machines/terminator.dot +++ b/docs/state-machines/terminator.dot @@ -19,7 +19,7 @@ digraph { Sno -> Sn [label="close"] Smo -> Sm [label="close" color="red"] S0o -> P_stop [label="close"] - + Snm [label="Snm:\nnameplate active\nmailbox active\nclosing" style="dashed"] Sn [label="Sn:\nnameplate active\nmailbox done\nclosing" @@ -45,6 +45,5 @@ digraph { other [shape="box" style="dashed" label="close -> N.close, M.close"] - } diff --git a/docs/tor.md b/docs/tor.md index c8ce4c5..f9c945b 100644 --- a/docs/tor.md +++ b/docs/tor.md @@ -14,7 +14,7 @@ Just add ``--tor`` to use a running Tor daemon: ``` wormhole send --tor myfile.jpg - + wormhole receive --tor ``` diff --git a/docs/transit.md b/docs/transit.md index 02287e1..4a01cae 100644 --- a/docs/transit.md +++ b/docs/transit.md @@ -164,7 +164,7 @@ be handled immediately. The complete example is here: ```python from twisted.internet.defer import inlineCallbacks from wormhole.transit import TransitSender - + @inlineCallbacks def do_transit(): s = TransitSender("tcp:relayhost.example.org:12345") diff --git a/docs/w.dot b/docs/w.dot index 244ee2d..96428e5 100644 --- a/docs/w.dot +++ b/docs/w.dot @@ -1,5 +1,5 @@ digraph { - + /* NM_start [label="Nameplate\nMachine" style="dotted"] NM_start -> NM_S_unclaimed [style="invis"] diff --git a/docs/welcome.md b/docs/welcome.md index 579c010..3537ad1 100644 --- a/docs/welcome.md +++ b/docs/welcome.md @@ -25,7 +25,7 @@ Sender: Sending 7924 byte file named 'README.md' On the other computer, please run: wormhole receive Wormhole code is: 7-crossover-clockwork - + Sending (<-10.0.1.43:58988).. 100%|=========================| 7.92K/7.92K [00:00<00:00, 6.02MB/s] File sent.. waiting for confirmation diff --git a/misc/dump-timing.py b/misc/dump-timing.py index a2c5544..ce6f964 100644 --- a/misc/dump-timing.py +++ b/misc/dump-timing.py @@ -56,4 +56,3 @@ def web(): reactor.callLater(0, launch_browser) reactor.run() web() - diff --git a/misc/web/timeline.js b/misc/web/timeline.js index 96a508c..8fa4024 100644 --- a/misc/web/timeline.js +++ b/misc/web/timeline.js @@ -1017,7 +1017,7 @@ function OFF() { .attr("stroke", "red") ; - + // horizontal scale markers: vertical lines at rational timestamps diff --git a/pyi/build-exe b/pyi/build-exe index 5c1b347..72f7d74 100755 --- a/pyi/build-exe +++ b/pyi/build-exe @@ -14,4 +14,3 @@ pyinstaller --clean --distpath=dist wormhole.exe.spec # result will be in dist/wormhole.exe - diff --git a/setup.cfg b/setup.cfg index c2199e9..0ec0a9d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,7 +5,7 @@ universal = 1 VCS = git versionfile_source = src/wormhole/_version.py versionfile_build = wormhole/_version.py -tag_prefix = +tag_prefix = parentdir_prefix = magic-wormhole [flake8] diff --git a/src/wormhole/errors.py b/src/wormhole/errors.py index e184b69..ced8840 100644 --- a/src/wormhole/errors.py +++ b/src/wormhole/errors.py @@ -51,7 +51,7 @@ class WrongPasswordError(WormholeError): """ Key confirmation failed. Either you or your correspondent typed the code wrong, or a would-be man-in-the-middle attacker guessed incorrectly. Try - sending the file again. + sending the file again. """ # or the data blob was corrupted, and that's why decrypt failed pass diff --git a/src/wormhole/test/dilate/test_connect.py b/src/wormhole/test/dilate/test_connect.py index b5d575e..ca8bc1a 100644 --- a/src/wormhole/test/dilate/test_connect.py +++ b/src/wormhole/test/dilate/test_connect.py @@ -88,5 +88,3 @@ class Connect(unittest.TestCase): yield t_left.d yield t_right.d - - diff --git a/src/wormhole/test/dilate/test_manager.py b/src/wormhole/test/dilate/test_manager.py index d2c9d99..586bb5a 100644 --- a/src/wormhole/test/dilate/test_manager.py +++ b/src/wormhole/test/dilate/test_manager.py @@ -624,4 +624,3 @@ class TestManager(unittest.TestCase): self.flushLoggedErrors(UnknownDilationMessageType) # TODO: test transit relay is used -