8000 Fix typos found by codespell · cedk/python-stdnum@48bfd84 · GitHub
[go: up one dir, main page]

Skip to content

Commit 48bfd84

Browse files
DimitriPapadopoulosarthurdejong
authored andcommitted
Fix typos found by codespell
Closes arthurdejong#269
1 parent dcdb5c9 commit 48bfd84

File tree

12 files changed

+15
-15
lines changed

12 files changed

+15
-15
lines changed

stdnum/ad/nrt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def compact(number):
6060
def validate(number):
6161
"""Check if the number is a valid Andorra NRT number.
6262
63-
This checks the length, formatting and other contraints. It does not check
63+
This checks the length, formatting and other constraints. It does not check
6464
for control letter.
6565
"""
6666
number = compact(number)

stdnum/bitcoin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"""Bitcoin address.
2121
2222
A Bitcoin address is an identifier that is used as destination in a Bitcoin
23-
transaction. It is based on a hash of the public portion of a keypair.
23+
transaction. It is based on a hash of the public portion of a key pair.
2424
2525
There are currently three address formats in use:
2626

stdnum/do/ncf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
digital certificate for the same purpose. The number is either 19, 11 or 13
2828
(e-CF) digits long.
2929
30-
The 19 digit number starts wit a letter (A or P) to indicate that the number
30+
The 19 digit number starts with a letter (A or P) to indicate that the number
3131
was assigned by the taxpayer or the DGII, followed a 2-digit business unit
3232
number, a 3-digit location number, a 3-digit mechanism identifier, a 2-digit
3333
document type and a 8-digit serial number.

stdnum/isbn.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
def compact(number, convert=False):
7070
"""Convert the ISBN to the minimal representation. This strips the number
7171
of any valid ISBN separators and removes surrounding whitespace. If the
72-
covert parameter is True the number is also converted to ISBN-13
72+
convert parameter is True the number is also converted to ISBN-13
7373
format."""
7474
number = clean(number, ' -').strip().upper()
7575
if len(number) == 9:
@@ -175,7 +175,7 @@ def to_isbn10(number):
175175
def split(number, convert=False):
176176
"""Split the specified ISBN into an EAN.UCC prefix, a group prefix, a
177177
registrant, an item number and a check-digit. If the number is in ISBN-10
178-
format the returned EAN.UCC prefix is '978'. If the covert parameter is
178+
format the returned EAN.UCC prefix is '978'. If the convert parameter is
179179
True the number is converted to ISBN-13 format first."""
180180
# clean up number
181181
number = compact(number, convert)
@@ -200,6 +200,6 @@ def format(number, separator='-', convert=False):
200200
EAN.UCC prefix (if any), the group prefix, the registrant, the item
201201
number and the check-digit separated (if possible) by the specified
202202
separator. Passing an empty separator should equal compact() though this
203-
is less efficient. If the covert parameter is True the number is
203+
is less efficient. If the convert parameter is True the number is
204204
converted to ISBN-13 format first."""
205205
return separator.join(x for x in split(number, convert) if x)

stdnum/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545

4646
def _mk_char_map(mapping):
47-
"""Transform a dictionary with comma separated uniode chracter names
47+
"""Transform a dictionary with comma separated uniode character names
4848
to tuples with unicode characters as key."""
4949
for key, value in mapping.items():
5050
for char in key.split(','):

stdnum/vn/mst.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
2626
The first two digits is the province code where the business was
2727
established. If an enterprise relocates its head office from one
28-
province to another, ths MST will remain unchanged.
28+
province to another, the MST will remain unchanged.
2929
3030
The following seven digits are a sequential number from 0000001 to
3131
9999999.

tests/test_cusip.doctest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ tries to validate a number of numbers that have been found online.
2525
>>> from stdnum.exceptions import *
2626

2727

28-
Number should not use O (captial o) or I (capital 1) to avoid confusion with
28+
Number should not use O (capital o) or I (capital 1) to avoid confusion with
2929
0 and 1:
3030

3131
>>> cusip.validate('0O141T575')

tests/test_de_idnr.doctest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Traceback (most recent call last):
4343
InvalidFormat: ...
4444

4545

46-
The first 10 digits of the IdNr is supposed to contain extactly one digit
46+
The first 10 digits of the IdNr is supposed to contain exactly one digit
4747
twice (or three times since 2016) and all other digits in the number can only
4848
appear once. This tries to catch some corner cases. Note that only the first
4949
10 digits are considered for this.

update/be_banks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python3
22
# coding: utf-8
33

4-
# update/be_banks.py - script to donwload Bank list from Belgian National Bank
4+
# update/be_banks.py - script to download Bank list from Belgian National Bank
55
#
66
# Copyright (C) 2018-2019 Arthur de Jong
77
#

update/imsi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22

3-
# update/imsi.py - script to donwload from Wikipedia to build the database
3+
# update/imsi.py - script to download from Wikipedia to build the database
44
#
55
# Copyright (C) 2011-2021 Arthur de Jong
66
#

update/isil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22

3-
# update/isil.py - script to donwload ISIL agencies
3+
# update/isil.py - script to download ISIL agencies
44
#
55
# Copyright (C) 2011-2019 Arthur de Jong
66
#

update/numlist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@
3434

3535

3636
# these are excluded
37-
algortihms = (
37+
algorithms = (
3838
'stdnum.verhoeff', 'stdnum.luhn', 'stdnum.iso7064', 'stdnum.damm')
3939

4040

4141
def get_number_modules():
4242
"""Provide the number modules that are not algorithms."""
4343
for module in util.get_number_modules():
44-
if module.__name__ not in algortihms and \
44+
if module.__name__ not in algorithms and \
4545
not module.__name__.startswith('stdnum.iso7064'):
4646
yield module
4747

0 commit comments

Comments
 (0)
0