Issue #27171: Merge typo fixes from 3.5
This commit is contained in:
commit
0b7d84de6b
|
@ -66,7 +66,7 @@
|
||||||
* Therefore surpress the toolbox-glue in 64-bit mode.
|
* Therefore surpress the toolbox-glue in 64-bit mode.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* In 64-bit mode setpgrp always has no argments, in 32-bit
|
/* In 64-bit mode setpgrp always has no arguments, in 32-bit
|
||||||
* mode that depends on the compilation environment
|
* mode that depends on the compilation environment
|
||||||
*/
|
*/
|
||||||
# undef SETPGRP_HAVE_ARG
|
# undef SETPGRP_HAVE_ARG
|
||||||
|
|
|
@ -157,7 +157,7 @@ def _find_appropriate_compiler(_config_vars):
|
||||||
# gcc-4.2 is either not present, or a copy of 'llvm-gcc' that
|
# gcc-4.2 is either not present, or a copy of 'llvm-gcc' that
|
||||||
# miscompiles Python.
|
# miscompiles Python.
|
||||||
|
|
||||||
# skip checks if the compiler was overriden with a CC env variable
|
# skip checks if the compiler was overridden with a CC env variable
|
||||||
if 'CC' in os.environ:
|
if 'CC' in os.environ:
|
||||||
return _config_vars
|
return _config_vars
|
||||||
|
|
||||||
|
@ -193,7 +193,7 @@ def _find_appropriate_compiler(_config_vars):
|
||||||
if cc != oldcc:
|
if cc != oldcc:
|
||||||
# Found a replacement compiler.
|
# Found a replacement compiler.
|
||||||
# Modify config vars using new compiler, if not already explicitly
|
# Modify config vars using new compiler, if not already explicitly
|
||||||
# overriden by an env variable, preserving additional arguments.
|
# overridden by an env variable, preserving additional arguments.
|
||||||
for cv in _COMPILER_CONFIG_VARS:
|
for cv in _COMPILER_CONFIG_VARS:
|
||||||
if cv in _config_vars and cv not in os.environ:
|
if cv in _config_vars and cv not in os.environ:
|
||||||
cv_split = _config_vars[cv].split()
|
cv_split = _config_vars[cv].split()
|
||||||
|
@ -207,7 +207,7 @@ def _remove_universal_flags(_config_vars):
|
||||||
"""Remove all universal build arguments from config vars"""
|
"""Remove all universal build arguments from config vars"""
|
||||||
|
|
||||||
for cv in _UNIVERSAL_CONFIG_VARS:
|
for cv in _UNIVERSAL_CONFIG_VARS:
|
||||||
# Do not alter a config var explicitly overriden by env var
|
# Do not alter a config var explicitly overridden by env var
|
||||||
if cv in _config_vars and cv not in os.environ:
|
if cv in _config_vars and cv not in os.environ:
|
||||||
flags = _config_vars[cv]
|
flags = _config_vars[cv]
|
||||||
flags = re.sub('-arch\s+\w+\s', ' ', flags, re.ASCII)
|
flags = re.sub('-arch\s+\w+\s', ' ', flags, re.ASCII)
|
||||||
|
@ -228,7 +228,7 @@ def _remove_unsupported_archs(_config_vars):
|
||||||
# build extensions on OSX 10.7 and later with the prebuilt
|
# build extensions on OSX 10.7 and later with the prebuilt
|
||||||
# 32-bit installer on the python.org website.
|
# 32-bit installer on the python.org website.
|
||||||
|
|
||||||
# skip checks if the compiler was overriden with a CC env variable
|
# skip checks if the compiler was overridden with a CC env variable
|
||||||
if 'CC' in os.environ:
|
if 'CC' in os.environ:
|
||||||
return _config_vars
|
return _config_vars
|
||||||
|
|
||||||
|
@ -244,7 +244,7 @@ def _remove_unsupported_archs(_config_vars):
|
||||||
# across Xcode and compiler versions, there is no reliable way
|
# across Xcode and compiler versions, there is no reliable way
|
||||||
# to be sure why it failed. Assume here it was due to lack of
|
# to be sure why it failed. Assume here it was due to lack of
|
||||||
# PPC support and remove the related '-arch' flags from each
|
# PPC support and remove the related '-arch' flags from each
|
||||||
# config variables not explicitly overriden by an environment
|
# config variables not explicitly overridden by an environment
|
||||||
# variable. If the error was for some other reason, we hope the
|
# variable. If the error was for some other reason, we hope the
|
||||||
# failure will show up again when trying to compile an extension
|
# failure will show up again when trying to compile an extension
|
||||||
# module.
|
# module.
|
||||||
|
@ -292,7 +292,7 @@ def _check_for_unavailable_sdk(_config_vars):
|
||||||
sdk = m.group(1)
|
sdk = m.group(1)
|
||||||
if not os.path.exists(sdk):
|
if not os.path.exists(sdk):
|
||||||
for cv in _UNIVERSAL_CONFIG_VARS:
|
for cv in _UNIVERSAL_CONFIG_VARS:
|
||||||
# Do not alter a config var explicitly overriden by env var
|
# Do not alter a config var explicitly overridden by env var
|
||||||
if cv in _config_vars and cv not in os.environ:
|
if cv in _config_vars and cv not in os.environ:
|
||||||
flags = _config_vars[cv]
|
flags = _config_vars[cv]
|
||||||
flags = re.sub(r'-isysroot\s+\S+(?:\s|$)', ' ', flags)
|
flags = re.sub(r'-isysroot\s+\S+(?:\s|$)', ' ', flags)
|
||||||
|
|
|
@ -1152,7 +1152,7 @@ class Decimal(object):
|
||||||
def __pos__(self, context=None):
|
def __pos__(self, context=None):
|
||||||
"""Returns a copy, unless it is a sNaN.
|
"""Returns a copy, unless it is a sNaN.
|
||||||
|
|
||||||
Rounds the number (if more then precision digits)
|
Rounds the number (if more than precision digits)
|
||||||
"""
|
"""
|
||||||
if self._is_special:
|
if self._is_special:
|
||||||
ans = self._check_nans(context=context)
|
ans = self._check_nans(context=context)
|
||||||
|
|
|
@ -1043,7 +1043,7 @@ class BufferedReader(_BufferedIOMixin):
|
||||||
break
|
break
|
||||||
avail += len(chunk)
|
avail += len(chunk)
|
||||||
chunks.append(chunk)
|
chunks.append(chunk)
|
||||||
# n is more then avail only when an EOF occurred or when
|
# n is more than avail only when an EOF occurred or when
|
||||||
# read() would have blocked.
|
# read() would have blocked.
|
||||||
n = min(n, avail)
|
n = min(n, avail)
|
||||||
out = b"".join(chunks)
|
out = b"".join(chunks)
|
||||||
|
|
|
@ -278,7 +278,7 @@ class BuildExtTestCase(TempdirManager,
|
||||||
|
|
||||||
def test_compiler_option(self):
|
def test_compiler_option(self):
|
||||||
# cmd.compiler is an option and
|
# cmd.compiler is an option and
|
||||||
# should not be overriden by a compiler instance
|
# should not be overridden by a compiler instance
|
||||||
# when the command is run
|
# when the command is run
|
||||||
dist = Distribution()
|
dist = Distribution()
|
||||||
cmd = self.build_ext(dist)
|
cmd = self.build_ext(dist)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""autocomplete.py - An IDLE extension for automatically completing names.
|
"""autocomplete.py - An IDLE extension for automatically completing names.
|
||||||
|
|
||||||
This extension can complete either attribute names of file names. It can pop
|
This extension can complete either attribute names or file names. It can pop
|
||||||
a window with all available names, for the user to select from.
|
a window with all available names, for the user to select from.
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -111,7 +111,7 @@ class _SimpleBinder:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
# An int in range(1 << len(_modifiers)) represents a combination of modifiers
|
# An int in range(1 << len(_modifiers)) represents a combination of modifiers
|
||||||
# (if the least significent bit is on, _modifiers[0] is on, and so on).
|
# (if the least significant bit is on, _modifiers[0] is on, and so on).
|
||||||
# _state_subsets gives for each combination of modifiers, or *state*,
|
# _state_subsets gives for each combination of modifiers, or *state*,
|
||||||
# a list of the states which are a subset of it. This list is ordered by the
|
# a list of the states which are a subset of it. This list is ordered by the
|
||||||
# number of modifiers is the state - the most specific state comes first.
|
# number of modifiers is the state - the most specific state comes first.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
"""RPC Implemention, originally written for the Python Idle IDE
|
"""RPC Implementation, originally written for the Python Idle IDE
|
||||||
|
|
||||||
For security reasons, GvR requested that Idle's Python execution server process
|
For security reasons, GvR requested that Idle's Python execution server process
|
||||||
connect to the Idle process, which listens for the connection. Since Idle has
|
connect to the Idle process, which listens for the connection. Since Idle has
|
||||||
|
|
|
@ -674,7 +674,7 @@ class PurePath(object):
|
||||||
return cls._flavour.join(parts)
|
return cls._flavour.join(parts)
|
||||||
|
|
||||||
def _init(self):
|
def _init(self):
|
||||||
# Overriden in concrete Path
|
# Overridden in concrete Path
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def _make_child(self, args):
|
def _make_child(self, args):
|
||||||
|
|
|
@ -52,7 +52,7 @@ If a file ".pdbrc" exists in your home directory or in the current
|
||||||
directory, it is read in and executed as if it had been typed at the
|
directory, it is read in and executed as if it had been typed at the
|
||||||
debugger prompt. This is particularly useful for aliases. If both
|
debugger prompt. This is particularly useful for aliases. If both
|
||||||
files exist, the one in the home directory is read first and aliases
|
files exist, the one in the home directory is read first and aliases
|
||||||
defined there can be overriden by the local file.
|
defined there can be overridden by the local file.
|
||||||
|
|
||||||
Aside from aliases, the debugger is not directly programmable; but it
|
Aside from aliases, the debugger is not directly programmable; but it
|
||||||
is implemented as a class from which you can derive your own debugger
|
is implemented as a class from which you can derive your own debugger
|
||||||
|
|
|
@ -231,7 +231,7 @@ class Random(_random.Random):
|
||||||
while r >= n:
|
while r >= n:
|
||||||
r = getrandbits(k)
|
r = getrandbits(k)
|
||||||
return r
|
return r
|
||||||
# There's an overriden random() method but no new getrandbits() method,
|
# There's an overridden random() method but no new getrandbits() method,
|
||||||
# so we can only use random() from here.
|
# so we can only use random() from here.
|
||||||
if n >= maxsize:
|
if n >= maxsize:
|
||||||
_warn("Underlying random() generator does not supply \n"
|
_warn("Underlying random() generator does not supply \n"
|
||||||
|
|
|
@ -59,7 +59,7 @@ because bar.pth comes alphabetically before foo.pth; and spam is
|
||||||
omitted because it is not mentioned in either path configuration file.
|
omitted because it is not mentioned in either path configuration file.
|
||||||
|
|
||||||
The readline module is also automatically configured to enable
|
The readline module is also automatically configured to enable
|
||||||
completion for systems that support it. This can be overriden in
|
completion for systems that support it. This can be overridden in
|
||||||
sitecustomize, usercustomize or PYTHONSTARTUP.
|
sitecustomize, usercustomize or PYTHONSTARTUP.
|
||||||
|
|
||||||
After these operations, an attempt is made to import a module
|
After these operations, an attempt is made to import a module
|
||||||
|
@ -379,7 +379,7 @@ def enablerlcompleter():
|
||||||
|
|
||||||
If the readline module can be imported, the hook will set the Tab key
|
If the readline module can be imported, the hook will set the Tab key
|
||||||
as completion key and register ~/.python_history as history file.
|
as completion key and register ~/.python_history as history file.
|
||||||
This can be overriden in the sitecustomize or usercustomize module,
|
This can be overridden in the sitecustomize or usercustomize module,
|
||||||
or in a PYTHONSTARTUP file.
|
or in a PYTHONSTARTUP file.
|
||||||
"""
|
"""
|
||||||
def register_readline():
|
def register_readline():
|
||||||
|
|
|
@ -736,7 +736,7 @@ class StrTest(unittest.TestCase, BaseStrTest):
|
||||||
finally:
|
finally:
|
||||||
r = s = None
|
r = s = None
|
||||||
|
|
||||||
# The original test_translate is overriden here, so as to get the
|
# The original test_translate is overridden here, so as to get the
|
||||||
# correct size estimate: str.translate() uses an intermediate Py_UCS4
|
# correct size estimate: str.translate() uses an intermediate Py_UCS4
|
||||||
# representation.
|
# representation.
|
||||||
|
|
||||||
|
|
|
@ -177,7 +177,7 @@ class PolicyAPITests(unittest.TestCase):
|
||||||
with self.assertRaisesRegex(self.MyDefect, "the telly is broken"):
|
with self.assertRaisesRegex(self.MyDefect, "the telly is broken"):
|
||||||
self.MyPolicy(raise_on_defect=True).handle_defect(foo, defect)
|
self.MyPolicy(raise_on_defect=True).handle_defect(foo, defect)
|
||||||
|
|
||||||
def test_overriden_register_defect_works(self):
|
def test_overridden_register_defect_works(self):
|
||||||
foo = self.MyObj()
|
foo = self.MyObj()
|
||||||
defect1 = self.MyDefect("one")
|
defect1 = self.MyDefect("one")
|
||||||
my_policy = self.MyPolicy()
|
my_policy = self.MyPolicy()
|
||||||
|
|
|
@ -227,7 +227,7 @@ a = A(destroyed)"""
|
||||||
b"len = len",
|
b"len = len",
|
||||||
b"shutil.rmtree = rmtree"})
|
b"shutil.rmtree = rmtree"})
|
||||||
|
|
||||||
def test_descriptor_errors_propogate(self):
|
def test_descriptor_errors_propagate(self):
|
||||||
class Descr:
|
class Descr:
|
||||||
def __get__(self, o, t):
|
def __get__(self, o, t):
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
|
@ -163,7 +163,7 @@ class ExplicitSubclassingTest(unittest.TestCase):
|
||||||
e = SubOSError(EEXIST, "Bad file descriptor")
|
e = SubOSError(EEXIST, "Bad file descriptor")
|
||||||
self.assertIs(type(e), SubOSError)
|
self.assertIs(type(e), SubOSError)
|
||||||
|
|
||||||
def test_init_overriden(self):
|
def test_init_overridden(self):
|
||||||
e = SubOSErrorWithInit("some message", "baz")
|
e = SubOSErrorWithInit("some message", "baz")
|
||||||
self.assertEqual(e.bar, "baz")
|
self.assertEqual(e.bar, "baz")
|
||||||
self.assertEqual(e.args, ("some message",))
|
self.assertEqual(e.args, ("some message",))
|
||||||
|
@ -173,7 +173,7 @@ class ExplicitSubclassingTest(unittest.TestCase):
|
||||||
self.assertEqual(e.bar, "baz")
|
self.assertEqual(e.bar, "baz")
|
||||||
self.assertEqual(e.args, ("some message",))
|
self.assertEqual(e.args, ("some message",))
|
||||||
|
|
||||||
def test_new_overriden(self):
|
def test_new_overridden(self):
|
||||||
e = SubOSErrorWithNew("some message", "baz")
|
e = SubOSErrorWithNew("some message", "baz")
|
||||||
self.assertEqual(e.baz, "baz")
|
self.assertEqual(e.baz, "baz")
|
||||||
self.assertEqual(e.args, ("some message",))
|
self.assertEqual(e.args, ("some message",))
|
||||||
|
@ -183,7 +183,7 @@ class ExplicitSubclassingTest(unittest.TestCase):
|
||||||
self.assertEqual(e.baz, "baz")
|
self.assertEqual(e.baz, "baz")
|
||||||
self.assertEqual(e.args, ("some message",))
|
self.assertEqual(e.args, ("some message",))
|
||||||
|
|
||||||
def test_init_new_overriden(self):
|
def test_init_new_overridden(self):
|
||||||
e = SubOSErrorCombinedInitFirst("some message", "baz")
|
e = SubOSErrorCombinedInitFirst("some message", "baz")
|
||||||
self.assertEqual(e.bar, "baz")
|
self.assertEqual(e.bar, "baz")
|
||||||
self.assertEqual(e.baz, "baz")
|
self.assertEqual(e.baz, "baz")
|
||||||
|
|
|
@ -494,7 +494,7 @@ class MersenneTwister_TestBasicOps(TestBasicOps, unittest.TestCase):
|
||||||
self.assertTrue(2**k > n > 2**(k-1)) # note the stronger assertion
|
self.assertTrue(2**k > n > 2**(k-1)) # note the stronger assertion
|
||||||
|
|
||||||
@unittest.mock.patch('random.Random.random')
|
@unittest.mock.patch('random.Random.random')
|
||||||
def test_randbelow_overriden_random(self, random_mock):
|
def test_randbelow_overridden_random(self, random_mock):
|
||||||
# Random._randbelow() can only use random() when the built-in one
|
# Random._randbelow() can only use random() when the built-in one
|
||||||
# has been overridden but no new getrandbits() method was supplied.
|
# has been overridden but no new getrandbits() method was supplied.
|
||||||
random_mock.side_effect = random.SystemRandom().random
|
random_mock.side_effect = random.SystemRandom().random
|
||||||
|
|
|
@ -1314,7 +1314,7 @@ class GeneralModuleTests(unittest.TestCase):
|
||||||
# socket.gethostbyaddr('испытание.python.org')
|
# socket.gethostbyaddr('испытание.python.org')
|
||||||
|
|
||||||
def check_sendall_interrupted(self, with_timeout):
|
def check_sendall_interrupted(self, with_timeout):
|
||||||
# socketpair() is not stricly required, but it makes things easier.
|
# socketpair() is not strictly required, but it makes things easier.
|
||||||
if not hasattr(signal, 'alarm') or not hasattr(socket, 'socketpair'):
|
if not hasattr(signal, 'alarm') or not hasattr(socket, 'socketpair'):
|
||||||
self.skipTest("signal.alarm and socket.socketpair required for this test")
|
self.skipTest("signal.alarm and socket.socketpair required for this test")
|
||||||
# Our signal handlers clobber the C errno by calling a math function
|
# Our signal handlers clobber the C errno by calling a math function
|
||||||
|
|
|
@ -164,7 +164,7 @@ class ProfileHookTestCase(TestCaseBase):
|
||||||
(1, 'return', g_ident),
|
(1, 'return', g_ident),
|
||||||
])
|
])
|
||||||
|
|
||||||
def test_exception_propogation(self):
|
def test_exception_propagation(self):
|
||||||
def f(p):
|
def f(p):
|
||||||
1/0
|
1/0
|
||||||
def g(p):
|
def g(p):
|
||||||
|
|
|
@ -3125,7 +3125,7 @@ class Text(Widget, XView, YView):
|
||||||
"""Creates a peer text widget with the given newPathName, and any
|
"""Creates a peer text widget with the given newPathName, and any
|
||||||
optional standard configuration options. By default the peer will
|
optional standard configuration options. By default the peer will
|
||||||
have the same start and end line as the parent widget, but
|
have the same start and end line as the parent widget, but
|
||||||
these can be overriden with the standard configuration options."""
|
these can be overridden with the standard configuration options."""
|
||||||
self.tk.call(self._w, 'peer', 'create', newPathName,
|
self.tk.call(self._w, 'peer', 'create', newPathName,
|
||||||
*self._options(cnf, kw))
|
*self._options(cnf, kw))
|
||||||
def peer_names(self): # new in Tk 8.5
|
def peer_names(self): # new in Tk 8.5
|
||||||
|
|
|
@ -71,7 +71,7 @@ class BaseTestSuite(object):
|
||||||
try:
|
try:
|
||||||
test = self._tests[index]
|
test = self._tests[index]
|
||||||
except TypeError:
|
except TypeError:
|
||||||
# support for suite implementations that have overriden self._tests
|
# support for suite implementations that have overridden self._tests
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
# Some unittest tests add non TestCase/TestSuite objects to
|
# Some unittest tests add non TestCase/TestSuite objects to
|
||||||
|
|
18
Misc/HISTORY
18
Misc/HISTORY
|
@ -1834,7 +1834,7 @@ Core and Builtins
|
||||||
objects. Initial patch by Matthias Troffaes.
|
objects. Initial patch by Matthias Troffaes.
|
||||||
|
|
||||||
- Fix OSError.__init__ and OSError.__new__ so that each of them can be
|
- Fix OSError.__init__ and OSError.__new__ so that each of them can be
|
||||||
overriden and take additional arguments (followup to issue #12555).
|
overridden and take additional arguments (followup to issue #12555).
|
||||||
|
|
||||||
- Fix the fix for issue #12149: it was incorrect, although it had the side
|
- Fix the fix for issue #12149: it was incorrect, although it had the side
|
||||||
effect of appearing to resolve the issue. Thanks to Mark Shannon for
|
effect of appearing to resolve the issue. Thanks to Mark Shannon for
|
||||||
|
@ -2053,7 +2053,7 @@ Core and Builtins
|
||||||
given, produce an informative error message which includes the name(s) of the
|
given, produce an informative error message which includes the name(s) of the
|
||||||
missing arguments.
|
missing arguments.
|
||||||
|
|
||||||
- Issue #12370: Fix super with no arguments when __class__ is overriden in the
|
- Issue #12370: Fix super with no arguments when __class__ is overridden in the
|
||||||
class body.
|
class body.
|
||||||
|
|
||||||
- Issue #12084: os.stat on Windows now works properly with relative symbolic
|
- Issue #12084: os.stat on Windows now works properly with relative symbolic
|
||||||
|
@ -7273,7 +7273,7 @@ Library
|
||||||
messages parsed by email.Parser.HeaderParser.
|
messages parsed by email.Parser.HeaderParser.
|
||||||
|
|
||||||
- Issue #7361: Importlib was not properly checking the number of bytes in
|
- Issue #7361: Importlib was not properly checking the number of bytes in
|
||||||
bytecode file when it was less then 8 bytes.
|
bytecode file when it was less than 8 bytes.
|
||||||
|
|
||||||
- Issue #7633: In the decimal module, Context class methods (with the exception
|
- Issue #7633: In the decimal module, Context class methods (with the exception
|
||||||
of canonical and is_canonical) now accept instances of int and long wherever a
|
of canonical and is_canonical) now accept instances of int and long wherever a
|
||||||
|
@ -7709,7 +7709,7 @@ Extension Modules
|
||||||
|
|
||||||
- Issue #7900: The getgroups(2) system call on MacOSX behaves rather oddly
|
- Issue #7900: The getgroups(2) system call on MacOSX behaves rather oddly
|
||||||
compared to other unix systems. In particular, os.getgroups() does not reflect
|
compared to other unix systems. In particular, os.getgroups() does not reflect
|
||||||
any changes made using os.setgroups() but basicly always returns the same
|
any changes made using os.setgroups() but basically always returns the same
|
||||||
information as the id command. os.getgroups() can now return more than 16
|
information as the id command. os.getgroups() can now return more than 16
|
||||||
groups on MacOSX.
|
groups on MacOSX.
|
||||||
|
|
||||||
|
@ -7728,7 +7728,7 @@ Extension Modules
|
||||||
- Issue #1578269: Implement os.symlink for Windows 6.0+. Patch by Jason
|
- Issue #1578269: Implement os.symlink for Windows 6.0+. Patch by Jason
|
||||||
R. Coombs.
|
R. Coombs.
|
||||||
|
|
||||||
- In struct.pack, correctly propogate exceptions from computing the truth of an
|
- In struct.pack, correctly propagate exceptions from computing the truth of an
|
||||||
object in the '?' format.
|
object in the '?' format.
|
||||||
|
|
||||||
- Issue #9000: datetime.timezone objects now have eval-friendly repr.
|
- Issue #9000: datetime.timezone objects now have eval-friendly repr.
|
||||||
|
@ -8215,7 +8215,7 @@ Build
|
||||||
added LIBS to OS X framework builds.
|
added LIBS to OS X framework builds.
|
||||||
|
|
||||||
- Issue #5809: Specifying both --enable-framework and --enable-shared is
|
- Issue #5809: Specifying both --enable-framework and --enable-shared is
|
||||||
an error. Configure now explicity tells you about this.
|
an error. Configure now explicitly tells you about this.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -9209,7 +9209,7 @@ Library
|
||||||
been backported to help facilitate transitions from 2.7 to 3.1.
|
been backported to help facilitate transitions from 2.7 to 3.1.
|
||||||
|
|
||||||
- Issue #1885: distutils. When running sdist with --formats=tar,gztar
|
- Issue #1885: distutils. When running sdist with --formats=tar,gztar
|
||||||
the tar file was overriden by the gztar one.
|
the tar file was overridden by the gztar one.
|
||||||
|
|
||||||
- Issue #4863: distutils.mwerkscompiler has been removed.
|
- Issue #4863: distutils.mwerkscompiler has been removed.
|
||||||
|
|
||||||
|
@ -10679,7 +10679,7 @@ Library
|
||||||
|
|
||||||
- Removed the 'new' module.
|
- Removed the 'new' module.
|
||||||
|
|
||||||
- Removed all types from the 'types' module that are easily accessable
|
- Removed all types from the 'types' module that are easily accessible
|
||||||
through builtins.
|
through builtins.
|
||||||
|
|
||||||
|
|
||||||
|
@ -20921,7 +20921,7 @@ Fri Mar 26 22:36:00 1999 Fred Drake <fdrake@eric.cnri.reston.va.us>
|
||||||
|
|
||||||
* Tools/scripts/dutree.py:
|
* Tools/scripts/dutree.py:
|
||||||
During display, if EPIPE is raised, it's probably because a pager was
|
During display, if EPIPE is raised, it's probably because a pager was
|
||||||
killed. Discard the error in that case, but propogate it otherwise.
|
killed. Discard the error in that case, but propagate it otherwise.
|
||||||
|
|
||||||
Fri Mar 26 16:20:45 1999 Guido van Rossum <guido@eric.cnri.reston.va.us>
|
Fri Mar 26 16:20:45 1999 Guido van Rossum <guido@eric.cnri.reston.va.us>
|
||||||
|
|
||||||
|
|
|
@ -7862,8 +7862,8 @@ Library
|
||||||
error message has been removed. Patch by Ram Rachum.
|
error message has been removed. Patch by Ram Rachum.
|
||||||
|
|
||||||
- Issue #18080: When building a C extension module on OS X, if the compiler
|
- Issue #18080: When building a C extension module on OS X, if the compiler
|
||||||
is overriden with the CC environment variable, use the new compiler as
|
is overridden with the CC environment variable, use the new compiler as
|
||||||
the default for linking if LDSHARED is not also overriden. This restores
|
the default for linking if LDSHARED is not also overridden. This restores
|
||||||
Distutils behavior introduced in 3.2.3 and inadvertently dropped in 3.3.0.
|
Distutils behavior introduced in 3.2.3 and inadvertently dropped in 3.3.0.
|
||||||
|
|
||||||
- Issue #18113: Fixed a refcount leak in the curses.panel module's
|
- Issue #18113: Fixed a refcount leak in the curses.panel module's
|
||||||
|
|
|
@ -1071,7 +1071,7 @@ format_utcoffset(char *buf, size_t buflen, const char *sep,
|
||||||
minutes = divmod(seconds, 60, &seconds);
|
minutes = divmod(seconds, 60, &seconds);
|
||||||
hours = divmod(minutes, 60, &minutes);
|
hours = divmod(minutes, 60, &minutes);
|
||||||
assert(seconds == 0);
|
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);
|
PyOS_snprintf(buf, buflen, "%c%02d%s%02d", sign, hours, sep, minutes);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -3305,7 +3305,7 @@ timezone_str(PyDateTime_TimeZone *self)
|
||||||
Py_DECREF(offset);
|
Py_DECREF(offset);
|
||||||
minutes = divmod(seconds, 60, &seconds);
|
minutes = divmod(seconds, 60, &seconds);
|
||||||
hours = divmod(minutes, 60, &minutes);
|
hours = divmod(minutes, 60, &minutes);
|
||||||
/* XXX ignore sub-minute data, curently not allowed. */
|
/* XXX ignore sub-minute data, currently not allowed. */
|
||||||
assert(seconds == 0);
|
assert(seconds == 0);
|
||||||
return PyUnicode_FromFormat("UTC%c%02d:%02d", sign, hours, minutes);
|
return PyUnicode_FromFormat("UTC%c%02d:%02d", sign, hours, minutes);
|
||||||
}
|
}
|
||||||
|
|
|
@ -701,7 +701,7 @@ _lzma.LZMACompressor.__init__
|
||||||
|
|
||||||
check: int(c_default="-1") = unspecified
|
check: int(c_default="-1") = unspecified
|
||||||
The integrity check to use. For FORMAT_XZ, the default
|
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.
|
checks; for these formats, check must be omitted, or be CHECK_NONE.
|
||||||
|
|
||||||
preset: object = None
|
preset: object = None
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#
|
#
|
||||||
# ARGUMENTS: Same as for "ld". The following arguments are processed
|
# ARGUMENTS: Same as for "ld". The following arguments are processed
|
||||||
# or supplied by this script (those marked with an asterisk
|
# 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
|
# Argument Default value
|
||||||
# (*) -o [OutputFileName] -o shr.o
|
# (*) -o [OutputFileName] -o shr.o
|
||||||
|
@ -85,7 +85,7 @@ if test ! -n "$*"; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Default import file for Python
|
# Default import file for Python
|
||||||
# Can be overriden by providing a -bI: argument.
|
# Can be overridden by providing a -bI: argument.
|
||||||
impfile="./python.exp"
|
impfile="./python.exp"
|
||||||
|
|
||||||
# Parse arguments
|
# Parse arguments
|
||||||
|
@ -156,7 +156,7 @@ if test -z "$expfile"; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Default entry symbol for Python modules = init[modulename]
|
# 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
|
if test -z "$entry"; then
|
||||||
entry=PyInit_`echo $filename | sed "s/module.*//"`
|
entry=PyInit_`echo $filename | sed "s/module.*//"`
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1092,7 +1092,7 @@ setup_readline(readlinestate *mod_state)
|
||||||
|
|
||||||
#ifndef __APPLE__
|
#ifndef __APPLE__
|
||||||
if (!isatty(STDOUT_FILENO)) {
|
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
|
keys to not write the ANSI sequence "\033[1034h" into stdout. On
|
||||||
terminals supporting 8 bit characters like TERM=xterm-256color
|
terminals supporting 8 bit characters like TERM=xterm-256color
|
||||||
(which is now the default Fedora since Fedora 18), the meta key is
|
(which is now the default Fedora since Fedora 18), the meta key is
|
||||||
|
|
|
@ -870,7 +870,7 @@ oserror_use_init(PyTypeObject *type)
|
||||||
solution, given __new__ takes a variable number of arguments,
|
solution, given __new__ takes a variable number of arguments,
|
||||||
is to defer arg parsing and initialization to __init__.
|
is to defer arg parsing and initialization to __init__.
|
||||||
|
|
||||||
But when __new__ is overriden as well, it should call our __new__
|
But when __new__ is overridden as well, it should call our __new__
|
||||||
with the right arguments.
|
with the right arguments.
|
||||||
|
|
||||||
(see http://bugs.python.org/issue12555#msg148829 )
|
(see http://bugs.python.org/issue12555#msg148829 )
|
||||||
|
|
|
@ -9492,7 +9492,7 @@ tailmatch(PyObject *self,
|
||||||
PyUnicode_GET_LENGTH(substring) *
|
PyUnicode_GET_LENGTH(substring) *
|
||||||
PyUnicode_KIND(substring));
|
PyUnicode_KIND(substring));
|
||||||
}
|
}
|
||||||
/* otherwise we have to compare each character by first accesing it */
|
/* otherwise we have to compare each character by first accessing it */
|
||||||
else {
|
else {
|
||||||
/* We do not need to compare 0 and len(substring)-1 because
|
/* We do not need to compare 0 and len(substring)-1 because
|
||||||
the if statement above ensured already that they are equal
|
the if statement above ensured already that they are equal
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -768,7 +768,7 @@ class PyBuildExt(build_ext):
|
||||||
# In every directory on the search path search for a dynamic
|
# In every directory on the search path search for a dynamic
|
||||||
# library and then a static library, instead of first looking
|
# library and then a static library, instead of first looking
|
||||||
# for dynamic libraries on the entire path.
|
# for dynamic libraries on the entire path.
|
||||||
# This way a staticly linked custom readline gets picked up
|
# This way a statically linked custom readline gets picked up
|
||||||
# before the (possibly broken) dynamic library in /usr/lib.
|
# before the (possibly broken) dynamic library in /usr/lib.
|
||||||
readline_extra_link_args = ('-Wl,-search_paths_first',)
|
readline_extra_link_args = ('-Wl,-search_paths_first',)
|
||||||
else:
|
else:
|
||||||
|
@ -1622,7 +1622,7 @@ class PyBuildExt(build_ext):
|
||||||
# --with-tcltk-libs="-L/path/to/tcllibs -ltclm.n \
|
# --with-tcltk-libs="-L/path/to/tcllibs -ltclm.n \
|
||||||
# -L/path/to/tklibs -ltkm.n"
|
# -L/path/to/tklibs -ltkm.n"
|
||||||
#
|
#
|
||||||
# These values can also be specified or overriden via make:
|
# These values can also be specified or overridden via make:
|
||||||
# make TCLTK_INCLUDES="..." TCLTK_LIBS="..."
|
# make TCLTK_INCLUDES="..." TCLTK_LIBS="..."
|
||||||
#
|
#
|
||||||
# This can be useful for building and testing tkinter with multiple
|
# This can be useful for building and testing tkinter with multiple
|
||||||
|
|
Loading…
Reference in New Issue