mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Fix a few typos and a double semicolon. Patch by Eitan Adler.
This commit is contained in:
parent
1c1cadbbca
commit
3f5db3940f
10 changed files with 10 additions and 10 deletions
|
@ -723,7 +723,7 @@ class _BaseNetwork(_IPAddressBase):
|
||||||
other: An IPv4Network or IPv6Network object of the same type.
|
other: An IPv4Network or IPv6Network object of the same type.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
An iterator of the the IPv(4|6)Network objects which is self
|
An iterator of the IPv(4|6)Network objects which is self
|
||||||
minus other.
|
minus other.
|
||||||
|
|
||||||
Raises:
|
Raises:
|
||||||
|
|
|
@ -670,7 +670,7 @@ class TestContentTypeHeader(TestHeaderBase):
|
||||||
),
|
),
|
||||||
|
|
||||||
# XXX: I would say this one should default to ascii/en for the
|
# XXX: I would say this one should default to ascii/en for the
|
||||||
# "encoded" segment, since the the first segment is not encoded and is
|
# "encoded" segment, since the first segment is not encoded and is
|
||||||
# in double quotes, making the value a valid non-encoded string. The
|
# in double quotes, making the value a valid non-encoded string. The
|
||||||
# old parser decodes this just like the previous case, which may be the
|
# old parser decodes this just like the previous case, which may be the
|
||||||
# better Postel rule, but could equally result in borking headers that
|
# better Postel rule, but could equally result in borking headers that
|
||||||
|
|
|
@ -15,7 +15,7 @@ class TestIsInstanceExceptions(unittest.TestCase):
|
||||||
# (leading to an "undetected error" in the debug build). Set up is,
|
# (leading to an "undetected error" in the debug build). Set up is,
|
||||||
# isinstance(inst, cls) where:
|
# isinstance(inst, cls) where:
|
||||||
#
|
#
|
||||||
# - cls isn't a a type, or a tuple
|
# - cls isn't a type, or a tuple
|
||||||
# - cls has a __bases__ attribute
|
# - cls has a __bases__ attribute
|
||||||
# - inst has a __class__ attribute
|
# - inst has a __class__ attribute
|
||||||
# - inst.__class__ as no __bases__ attribute
|
# - inst.__class__ as no __bases__ attribute
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#
|
#
|
||||||
# A possible improvement would be to have empty.vbs do something that
|
# A possible improvement would be to have empty.vbs do something that
|
||||||
# we can detect here, to make sure that not only the os.startfile()
|
# we can detect here, to make sure that not only the os.startfile()
|
||||||
# call succeeded, but also the the script actually has run.
|
# call succeeded, but also the script actually has run.
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
from test import support
|
from test import support
|
||||||
|
|
|
@ -3598,7 +3598,7 @@ time_isoformat(PyDateTime_Time *self, PyObject *unused)
|
||||||
{
|
{
|
||||||
char buf[100];
|
char buf[100];
|
||||||
PyObject *result;
|
PyObject *result;
|
||||||
int us = TIME_GET_MICROSECOND(self);;
|
int us = TIME_GET_MICROSECOND(self);
|
||||||
|
|
||||||
if (us)
|
if (us)
|
||||||
result = PyUnicode_FromFormat("%02d:%02d:%02d.%06d",
|
result = PyUnicode_FromFormat("%02d:%02d:%02d.%06d",
|
||||||
|
|
|
@ -2084,7 +2084,7 @@ mpd_qcmp(const mpd_t *a, const mpd_t *b, uint32_t *status)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Compare a and b, convert the the usual integer result to a decimal and
|
* Compare a and b, convert the usual integer result to a decimal and
|
||||||
* store it in 'result'. For convenience, the integer result of the comparison
|
* store it in 'result'. For convenience, the integer result of the comparison
|
||||||
* is returned. Comparisons involving NaNs return NaN/INT_MAX.
|
* is returned. Comparisons involving NaNs return NaN/INT_MAX.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -289,7 +289,7 @@ float_repr(PyFloatObject *v)
|
||||||
* may lose info from fractional bits. Converting the integer to a double
|
* may lose info from fractional bits. Converting the integer to a double
|
||||||
* also has two failure modes: (1) a long int may trigger overflow (too
|
* also has two failure modes: (1) a long int may trigger overflow (too
|
||||||
* large to fit in the dynamic range of a C double); (2) even a C long may have
|
* large to fit in the dynamic range of a C double); (2) even a C long may have
|
||||||
* more bits than fit in a C double (e.g., on a a 64-bit box long may have
|
* more bits than fit in a C double (e.g., on a 64-bit box long may have
|
||||||
* 63 bits of precision, but a C double probably has only 53), and then
|
* 63 bits of precision, but a C double probably has only 53), and then
|
||||||
* we can falsely claim equality when low-order integer bits are lost by
|
* we can falsely claim equality when low-order integer bits are lost by
|
||||||
* coercion to double. So this part is painful too.
|
* coercion to double. So this part is painful too.
|
||||||
|
|
|
@ -1463,7 +1463,7 @@ class Frame(object):
|
||||||
return name.startswith('pthread_cond_timedwait')
|
return name.startswith('pthread_cond_timedwait')
|
||||||
|
|
||||||
def is_gc_collect(self):
|
def is_gc_collect(self):
|
||||||
'''Is this frame "collect" within the the garbage-collector?'''
|
'''Is this frame "collect" within the garbage-collector?'''
|
||||||
return self._gdbframe.name() == 'collect'
|
return self._gdbframe.name() == 'collect'
|
||||||
|
|
||||||
def get_pyop(self):
|
def get_pyop(self):
|
||||||
|
|
|
@ -958,7 +958,7 @@ _Validation_records = [
|
||||||
(u'ServiceInstall',u'StartType',u'N',0,4,None, None, None, None, u'Type of the service',),
|
(u'ServiceInstall',u'StartType',u'N',0,4,None, None, None, None, u'Type of the service',),
|
||||||
(u'Shortcut',u'Name',u'N',None, None, None, None, u'Filename',None, u'The name of the shortcut to be created.',),
|
(u'Shortcut',u'Name',u'N',None, None, None, None, u'Filename',None, u'The name of the shortcut to be created.',),
|
||||||
(u'Shortcut',u'Description',u'Y',None, None, None, None, u'Text',None, u'The description for the shortcut.',),
|
(u'Shortcut',u'Description',u'Y',None, None, None, None, u'Text',None, u'The description for the shortcut.',),
|
||||||
(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.',),
|
(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.',),
|
||||||
(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.',),
|
(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.',),
|
||||||
(u'Shortcut',u'IconIndex',u'Y',-32767,32767,None, None, None, None, u'The icon index for the shortcut.',),
|
(u'Shortcut',u'IconIndex',u'Y',-32767,32767,None, None, None, None, u'The icon index for the shortcut.',),
|
||||||
(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.',),
|
(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.',),
|
||||||
|
|
|
@ -1195,7 +1195,7 @@ _Validation = [
|
||||||
(u'ServiceInstall', u'StartType', u'N', 0, 4, None, None, None, None, u'Type of the service'),
|
(u'ServiceInstall', u'StartType', u'N', 0, 4, None, None, None, None, u'Type of the service'),
|
||||||
(u'Shortcut', u'Name', u'N', None, None, None, None, u'Filename', None, u'The name of the shortcut to be created.'),
|
(u'Shortcut', u'Name', u'N', None, None, None, None, u'Filename', None, u'The name of the shortcut to be created.'),
|
||||||
(u'Shortcut', u'Description', u'Y', None, None, None, None, u'Text', None, u'The description for the shortcut.'),
|
(u'Shortcut', u'Description', u'Y', None, None, None, None, u'Text', None, u'The description for the shortcut.'),
|
||||||
(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.'),
|
(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.'),
|
||||||
(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.'),
|
(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.'),
|
||||||
(u'Shortcut', u'IconIndex', u'Y', -32767, 32767, None, None, None, None, u'The icon index for the shortcut.'),
|
(u'Shortcut', u'IconIndex', u'Y', -32767, 32767, None, None, None, None, u'The icon index for the shortcut.'),
|
||||||
(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.'),
|
(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.'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue