mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Issue #27171: Fix typos in documentation, comments, and test function names
This commit is contained in:
parent
1b207c55a4
commit
e26da7c03a
30 changed files with 51 additions and 51 deletions
|
|
@ -1073,7 +1073,7 @@ format_utcoffset(char *buf, size_t buflen, const char *sep,
|
|||
minutes = divmod(seconds, 60, &seconds);
|
||||
hours = divmod(minutes, 60, &minutes);
|
||||
assert(seconds == 0);
|
||||
/* XXX ignore sub-minute data, curently not allowed. */
|
||||
/* XXX ignore sub-minute data, currently not allowed. */
|
||||
PyOS_snprintf(buf, buflen, "%c%02d%s%02d", sign, hours, sep, minutes);
|
||||
|
||||
return 0;
|
||||
|
|
@ -3304,7 +3304,7 @@ timezone_str(PyDateTime_TimeZone *self)
|
|||
Py_DECREF(offset);
|
||||
minutes = divmod(seconds, 60, &seconds);
|
||||
hours = divmod(minutes, 60, &minutes);
|
||||
/* XXX ignore sub-minute data, curently not allowed. */
|
||||
/* XXX ignore sub-minute data, currently not allowed. */
|
||||
assert(seconds == 0);
|
||||
return PyUnicode_FromFormat("UTC%c%02d:%02d", sign, hours, minutes);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -705,7 +705,7 @@ _lzma.LZMACompressor.__init__
|
|||
|
||||
check: int(c_default="-1") = unspecified
|
||||
The integrity check to use. For FORMAT_XZ, the default
|
||||
is CHECK_CRC64. FORMAT_ALONE and FORMAT_RAW do not suport integrity
|
||||
is CHECK_CRC64. FORMAT_ALONE and FORMAT_RAW do not support integrity
|
||||
checks; for these formats, check must be omitted, or be CHECK_NONE.
|
||||
|
||||
preset: object = None
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
#
|
||||
# ARGUMENTS: Same as for "ld". The following arguments are processed
|
||||
# or supplied by this script (those marked with an asterisk
|
||||
# can be overriden from command line):
|
||||
# can be overridden from command line):
|
||||
#
|
||||
# Argument Default value
|
||||
# (*) -o [OutputFileName] -o shr.o
|
||||
|
|
@ -85,7 +85,7 @@ if test ! -n "$*"; then
|
|||
fi
|
||||
|
||||
# Default import file for Python
|
||||
# Can be overriden by providing a -bI: argument.
|
||||
# Can be overridden by providing a -bI: argument.
|
||||
impfile="./python.exp"
|
||||
|
||||
# Parse arguments
|
||||
|
|
@ -156,7 +156,7 @@ if test -z "$expfile"; then
|
|||
fi
|
||||
|
||||
# Default entry symbol for Python modules = init[modulename]
|
||||
# Can be overriden by providing a -e argument.
|
||||
# Can be overridden by providing a -e argument.
|
||||
if test -z "$entry"; then
|
||||
entry=PyInit_`echo $filename | sed "s/module.*//"`
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -1075,7 +1075,7 @@ setup_readline(readlinestate *mod_state)
|
|||
|
||||
#ifndef __APPLE__
|
||||
if (!isatty(STDOUT_FILENO)) {
|
||||
/* Issue #19884: stdout is no a terminal. Disable meta modifier
|
||||
/* Issue #19884: stdout is not a terminal. Disable meta modifier
|
||||
keys to not write the ANSI sequence "\033[1034h" into stdout. On
|
||||
terminals supporting 8 bit characters like TERM=xterm-256color
|
||||
(which is now the default Fedora since Fedora 18), the meta key is
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue