mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
#18466: merge with 3.3.
This commit is contained in:
commit
a7e7497d88
12 changed files with 12 additions and 12 deletions
|
@ -42,7 +42,7 @@ typedef struct
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
PyObject_HEAD /* a pure abstract base clase */
|
PyObject_HEAD /* a pure abstract base class */
|
||||||
} PyDateTime_TZInfo;
|
} PyDateTime_TZInfo;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -372,7 +372,7 @@ def namedtuple(typename, field_names, verbose=False, rename=False):
|
||||||
print(result._source)
|
print(result._source)
|
||||||
|
|
||||||
# For pickling to work, the __module__ variable needs to be set to the frame
|
# For pickling to work, the __module__ variable needs to be set to the frame
|
||||||
# where the named tuple is created. Bypass this step in enviroments where
|
# where the named tuple is created. Bypass this step in environments where
|
||||||
# sys._getframe is not defined (Jython for example) or sys._getframe is not
|
# sys._getframe is not defined (Jython for example) or sys._getframe is not
|
||||||
# defined for arguments greater than 0 (IronPython).
|
# defined for arguments greater than 0 (IronPython).
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -250,7 +250,7 @@ class TestTimeZone(unittest.TestCase):
|
||||||
t.replace(tzinfo=tz).dst())
|
t.replace(tzinfo=tz).dst())
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
# Base clase for testing a particular aspect of timedelta, time, date and
|
# Base class for testing a particular aspect of timedelta, time, date and
|
||||||
# datetime comparisons.
|
# datetime comparisons.
|
||||||
|
|
||||||
class HarmlessMixedComparison:
|
class HarmlessMixedComparison:
|
||||||
|
|
|
@ -1294,7 +1294,7 @@ class URLopener_Tests(unittest.TestCase):
|
||||||
# Everywhere else they work ok, but on those machines, sometimes
|
# Everywhere else they work ok, but on those machines, sometimes
|
||||||
# fail in one of the tests, sometimes in other. I have a linux, and
|
# fail in one of the tests, sometimes in other. I have a linux, and
|
||||||
# the tests go ok.
|
# the tests go ok.
|
||||||
# If anybody has one of the problematic enviroments, please help!
|
# If anybody has one of the problematic environments, please help!
|
||||||
# . Facundo
|
# . Facundo
|
||||||
#
|
#
|
||||||
# def server(evt):
|
# def server(evt):
|
||||||
|
|
|
@ -491,7 +491,7 @@ getenvironment(PyObject* environment)
|
||||||
Py_UCS4 *buffer = NULL, *p, *end;
|
Py_UCS4 *buffer = NULL, *p, *end;
|
||||||
PyObject *keys, *values, *res;
|
PyObject *keys, *values, *res;
|
||||||
|
|
||||||
/* convert environment dictionary to windows enviroment string */
|
/* convert environment dictionary to windows environment string */
|
||||||
if (! PyMapping_Check(environment)) {
|
if (! PyMapping_Check(environment)) {
|
||||||
PyErr_SetString(
|
PyErr_SetString(
|
||||||
PyExc_TypeError, "environment must be dictionary or None");
|
PyExc_TypeError, "environment must be dictionary or None");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue