Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3f5db39

Browse files
committed
Fix a few typos and a double semicolon. Patch by Eitan Adler.
1 parent 1c1cadb commit 3f5db39

10 files changed

Lines changed: 10 additions & 10 deletions

File tree

Lib/ipaddress.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ def address_exclude(self, other):
723723
other: An IPv4Network or IPv6Network object of the same type.
724724
725725
Returns:
726-
An iterator of the the IPv(4|6)Network objects which is self
726+
An iterator of the IPv(4|6)Network objects which is self
727727
minus other.
728728
729729
Raises:

Lib/test/test_email/test_headerregistry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ def content_type_as_value(self,
670670
),
671671

672672
# XXX: I would say this one should default to ascii/en for the
673-
# "encoded" segment, since the the first segment is not encoded and is
673+
# "encoded" segment, since the first segment is not encoded and is
674674
# in double quotes, making the value a valid non-encoded string. The
675675
# old parser decodes this just like the previous case, which may be the
676676
# better Postel rule, but could equally result in borking headers that

Lib/test/test_isinstance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class TestIsInstanceExceptions(unittest.TestCase):
1515
# (leading to an "undetected error" in the debug build). Set up is,
1616
# isinstance(inst, cls) where:
1717
#
18-
# - cls isn't a a type, or a tuple
18+
# - cls isn't a type, or a tuple
1919
# - cls has a __bases__ attribute
2020
# - inst has a __class__ attribute
2121
# - inst.__class__ as no __bases__ attribute

Lib/test/test_startfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
# A possible improvement would be to have empty.vbs do something that
77
# we can detect here, to make sure that not only the os.startfile()
8-
# call succeeded, but also the the script actually has run.
8+
# call succeeded, but also the script actually has run.
99

1010
import unittest
1111
from test import support

Modules/_datetimemodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3598,7 +3598,7 @@ time_isoformat(PyDateTime_Time *self, PyObject *unused)
35983598
{
35993599
char buf[100];
36003600
PyObject *result;
3601-
int us = TIME_GET_MICROSECOND(self);;
3601+
int us = TIME_GET_MICROSECOND(self);
36023602

36033603
if (us)
36043604
result = PyUnicode_FromFormat("%02d:%02d:%02d.%06d",

Modules/_decimal/libmpdec/mpdecimal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2084,7 +2084,7 @@ mpd_qcmp(const mpd_t *a, const mpd_t *b, uint32_t *status)
20842084
}
20852085

20862086
/*
2087-
* Compare a and b, convert the the usual integer result to a decimal and
2087+
* Compare a and b, convert the usual integer result to a decimal and
20882088
* store it in 'result'. For convenience, the integer result of the comparison
20892089
* is returned. Comparisons involving NaNs return NaN/INT_MAX.
20902090
*/

Objects/floatobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ float_repr(PyFloatObject *v)
289289
* may lose info from fractional bits. Converting the integer to a double
290290
* also has two failure modes: (1) a long int may trigger overflow (too
291291
* large to fit in the dynamic range of a C double); (2) even a C long may have
292-
* more bits than fit in a C double (e.g., on a a 64-bit box long may have
292+
* more bits than fit in a C double (e.g., on a 64-bit box long may have
293293
* 63 bits of precision, but a C double probably has only 53), and then
294294
* we can falsely claim equality when low-order integer bits are lost by
295295
* coercion to double. So this part is painful too.

Tools/gdb/libpython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,7 @@ def is_waiting_for_gil(self):
14631463
return name.startswith('pthread_cond_timedwait')
14641464

14651465
def is_gc_collect(self):
1466-
'''Is this frame "collect" within the the garbage-collector?'''
1466+
'''Is this frame "collect" within the garbage-collector?'''
14671467
return self._gdbframe.name() == 'collect'
14681468

14691469
def get_pyop(self):

Tools/msi/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@
958958
(u'ServiceInstall',u'StartType',u'N',0,4,None, None, None, None, u'Type of the service',),
959959
(u'Shortcut',u'Name',u'N',None, None, None, None, u'Filename',None, u'The name of the shortcut to be created.',),
960960
(u'Shortcut',u'Description',u'Y',None, None, None, None, u'Text',None, u'The description for the shortcut.',),
961-
(u'Shortcut',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Foreign key into the Component table denoting the component whose selection gates the the shortcut creation/deletion.',),
961+
(u'Shortcut',u'Component_',u'N',None, None, u'Component',1,u'Identifier',None, u'Foreign key into the Component table denoting the component whose selection gates the shortcut creation/deletion.',),
962962
(u'Shortcut',u'Icon_',u'Y',None, None, u'Icon',1,u'Identifier',None, u'Foreign key into the File table denoting the external icon file for the shortcut.',),
963963
(u'Shortcut',u'IconIndex',u'Y',-32767,32767,None, None, None, None, u'The icon index for the shortcut.',),
964964
(u'Shortcut',u'Directory_',u'N',None, None, u'Directory',1,u'Identifier',None, u'Foreign key into the Directory table denoting the directory where the shortcut file is created.',),

Tools/msi/uisample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@
11951195
(u'ServiceInstall', u'StartType', u'N', 0, 4, None, None, None, None, u'Type of the service'),
11961196
(u'Shortcut', u'Name', u'N', None, None, None, None, u'Filename', None, u'The name of the shortcut to be created.'),
11971197
(u'Shortcut', u'Description', u'Y', None, None, None, None, u'Text', None, u'The description for the shortcut.'),
1198-
(u'Shortcut', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Foreign key into the Component table denoting the component whose selection gates the the shortcut creation/deletion.'),
1198+
(u'Shortcut', u'Component_', u'N', None, None, u'Component', 1, u'Identifier', None, u'Foreign key into the Component table denoting the component whose selection gates the shortcut creation/deletion.'),
11991199
(u'Shortcut', u'Icon_', u'Y', None, None, u'Icon', 1, u'Identifier', None, u'Foreign key into the File table denoting the external icon file for the shortcut.'),
12001200
(u'Shortcut', u'IconIndex', u'Y', -32767, 32767, None, None, None, None, u'The icon index for the shortcut.'),
12011201
(u'Shortcut', u'Directory_', u'N', None, None, u'Directory', 1, u'Identifier', None, u'Foreign key into the Directory table denoting the directory where the shortcut file is created.'),

0 commit comments

Comments
 (0)