Skip to content

Commit 02e962f

Browse files
Clean up several typos
Closes #101 and #103.
1 parent 74b329e commit 02e962f

File tree

11 files changed

+16
-20
lines changed

11 files changed

+16
-20
lines changed

blocksatcli/api/gpg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def create_keys(self, name, email, comment, passphrase=None):
7474
name_email=email,
7575
passphrase=self.passphrase)
7676
self.gpg.gen_key(key_params)
77-
logger.info("Keys succesfully generated at {}".format(
77+
logger.info("Keys successfully generated at {}".format(
7878
os.path.abspath(self.gpghome)))
7979

8080
def prompt_passphrase(self, prompt=None):

blocksatcli/api/msg.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -312,11 +312,11 @@ def clearsign(self, gpg, sign_key):
312312
def verify(self, gpg, signer):
313313
"""Verify signed (but non-encrypted) message from target signer
314314
315-
Detects whether the clearsigned plaintext messages comes from the
315+
Detects whether the clear-signed plaintext messages comes from the
316316
specified signer. In the positive case, overwrite the "original" data
317317
container with the underlying data, excluding the signature. In other
318-
words, if the verification is succesful, remove the signature and leave
319-
the data only.
318+
words, if the verification is successful, remove the signature and
319+
leave the data only.
320320
321321
Args:
322322
gpg : Gpg object.
@@ -573,7 +573,7 @@ def generate(data,
573573
if (recipient is None):
574574
recipient = gpg.get_default_public_key()["fingerprint"]
575575
assert (recipient != defs.blocksat_pubkey), \
576-
"Defaul public key is not the user's public key"
576+
"Default public key is not the user's public key"
577577
else:
578578
# Make sure the key exists
579579
gpg.get_public_key(recipient)
@@ -617,7 +617,7 @@ def decode(data,
617617
gpg : Gpg object.
618618
619619
Returns:
620-
ApiMsg if the message is succesfully decoded, None otherwise.
620+
ApiMsg if the message is successfully decoded, None otherwise.
621621
622622
"""
623623
if ((not plaintext or sender) and gpg is None):

blocksatcli/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ def get_rx_model(user_info):
770770
771771
Note: this function differs from _get_rx_marketing_name(). The latter
772772
includes the satellite kit name. In contrast, this function returns the raw
773-
vendeor-model string.
773+
vendor-model string.
774774
775775
"""
776776
return (user_info['setup']['vendor'] + " " +

blocksatcli/monitoring_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def _register_thread(self,
545545
# - Sent over the API channel dedicated for authentication messages
546546
download_dir = None # Don't save messages
547547
interface = config.get_net_if(self.user_info)
548-
recv_queue = queue.Queue() # save API donwloads on this queue
548+
recv_queue = queue.Queue() # save API downloads on this queue
549549
listen_loop = ApiListener(recv_queue=recv_queue)
550550
listen_thread = threading.Thread(target=listen_loop.run,
551551
daemon=True,

blocksatcli/satip.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def discover(self, src_port, interface):
144144
src_port: Source port.
145145
interface: Network interface.
146146
147-
Retuns:
147+
Returns:
148148
List with the discovered devices
149149
150150
"""

blocksatcli/test_config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def test_verify_chan_config(self):
231231
self.assertFalse(config.verify_chan_conf(info))
232232

233233
@patch('blocksatcli.util.ask_yes_or_no')
234-
def test_cfg_reseting(self, mock_yes_or_no):
234+
def test_cfg_resetting(self, mock_yes_or_no):
235235
# Create the config file
236236
test_info = {'test': 123}
237237
config.write_cfg_file(self.cfg_name, self.cfg_dir, test_info)

blocksatcli/test_tsp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_file_save_prompt(self, mock_yes_or_no):
2222

2323
def test_non_prompting_opts(self):
2424
# If the prompting options are not provided, the tsp command should be
25-
# generated succesfully every time
25+
# generated successfully every time
2626
tsp_handler = tsp.Tsp()
2727
args = self.parser.parse_args(
2828
['--ts-monitor-bitrate', '--ts-monitor-sequence'])

blocksatcli/tsp.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def gen_cmd(self, args, in_plugin=None):
8888
Args:
8989
in_plugin : List with input plugin command to be used by tsp.
9090
91-
Rerturns:
91+
Returns:
9292
Boolean indicating whether a valid command was generated.
9393
9494
"""
@@ -148,8 +148,8 @@ def run(self, stdin=None):
148148
Args:
149149
stdin : Stdin to attach to the tsp process.
150150
151-
Rerturns:
152-
Boolean indicating whether the process is running succesfully.
151+
Returns:
152+
Boolean indicating whether the process is running successfully.
153153
154154
"""
155155
# Create a .tsduck.lastcheck file on the home directory to skip the

doc/antenna-pointing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ At this stage, you can leave the screws that control the azimuth angle slightly
6060

6161
Assuming that the receiver is configured correctly and connected, your next step is to find the satellite. You will adjust the antenna pointing until the receiver can lock to the Blockstream Satellite signal. Please note that this is likely the most time-consuming part of the setup process, especially when doing it for the first time. As mentioned earlier, a single degree shifted on the dish represents a change of thousands of kilometers over the geosynchronous orbit.
6262

63-
The process will be easier with a laptop than can be watched while moving the antenna. If you cannot watch the computer, you’ll need two people: one to move the antenna and one to monitor the computer.
63+
The process will be easier with a laptop that can be watched while moving the antenna. If you cannot watch the computer, you’ll need two people: one to move the antenna and one to monitor the computer.
6464

6565
To start, make sure that your receiver is running. Depending on your type of receiver, this step involves one of the following commands:
6666

doc/api.md

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ The `blocksat-cli` command-line interface (CLI) provides a range of commands for
1414

1515
> To install the CLI, please refer to the [installation instructions](quick-reference.md#cli-installation-and-upgrade).
1616
17-
> The API support on the CLI is available starting from version `0.3.0`. Please refer to instructions regarding how to [check and upgrade your CLI version](quick-reference.md#cli-installation-and-upgrade).
18-
1917
For details regarding the RESTful API, please refer to the [Satellite API's repository](https://github.com/Blockstream/satellite-api).
2018

2119
<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc-refresh-toc -->

doc/mkdocs.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# MkDocs
22

3-
An MkDocs setup is available for local development of docs and visualization
4-
before pushing to Github Pages. Please run it as follows from the root
5-
directory:
3+
A MkDocs setup is available for local development of docs and visualization before pushing to Github Pages. Please run it as follows from the root directory:
64

75
```bash
86
docker build -f doc/mkdocs.dockerfile -t blocksat-mkdocs .

0 commit comments

Comments
 (0)