diff -r 27ae40361ca5 Doc/includes/noddy.c --- a/Doc/includes/noddy.c Sat Aug 04 16:17:10 2012 +0200 +++ b/Doc/includes/noddy.c Sat Aug 04 22:11:40 2012 +0300 @@ -38,7 +38,7 @@ }; PyMODINIT_FUNC -PyInit_noddy(void) +PyInit_noddy(void) { PyObject* m; diff -r 27ae40361ca5 Include/Python-ast.h --- a/Include/Python-ast.h Sat Aug 04 16:17:10 2012 +0200 +++ b/Include/Python-ast.h Sat Aug 04 22:11:40 2012 +0300 @@ -47,19 +47,19 @@ struct { asdl_seq *body; } Module; - + struct { asdl_seq *body; } Interactive; - + struct { expr_ty body; } Expression; - + struct { asdl_seq *body; } Suite; - + } v; }; @@ -79,7 +79,7 @@ asdl_seq *decorator_list; expr_ty returns; } FunctionDef; - + struct { identifier name; asdl_seq *bases; @@ -89,89 +89,89 @@ asdl_seq *body; asdl_seq *decorator_list; } ClassDef; - + struct { expr_ty value; } Return; - + struct { asdl_seq *targets; } Delete; - + struct { asdl_seq *targets; expr_ty value; } Assign; - + struct { expr_ty target; operator_ty op; expr_ty value; } AugAssign; - + struct { expr_ty target; expr_ty iter; asdl_seq *body; asdl_seq *orelse; } For; - + struct { expr_ty test; asdl_seq *body; asdl_seq *orelse; } While; - + struct { expr_ty test; asdl_seq *body; asdl_seq *orelse; } If; - + struct { asdl_seq *items; asdl_seq *body; } With; - + struct { expr_ty exc; expr_ty cause; } Raise; - + struct { asdl_seq *body; asdl_seq *handlers; asdl_seq *orelse; asdl_seq *finalbody; } Try; - + struct { expr_ty test; expr_ty msg; } Assert; - + struct { asdl_seq *names; } Import; - + struct { identifier module; asdl_seq *names; int level; } ImportFrom; - + struct { asdl_seq *names; } Global; - + struct { asdl_seq *names; } Nonlocal; - + struct { expr_ty value; } Expr; - + } v; int lineno; int col_offset; @@ -191,73 +191,73 @@ boolop_ty op; asdl_seq *values; } BoolOp; - + struct { expr_ty left; operator_ty op; expr_ty right; } BinOp; - + struct { unaryop_ty op; expr_ty operand; } UnaryOp; - + struct { arguments_ty args; expr_ty body; } Lambda; - + struct { expr_ty test; expr_ty body; expr_ty orelse; } IfExp; - + struct { asdl_seq *keys; asdl_seq *values; } Dict; - + struct { asdl_seq *elts; } Set; - + struct { expr_ty elt; asdl_seq *generators; } ListComp; - + struct { expr_ty elt; asdl_seq *generators; } SetComp; - + struct { expr_ty key; expr_ty value; asdl_seq *generators; } DictComp; - + struct { expr_ty elt; asdl_seq *generators; } GeneratorExp; - + struct { expr_ty value; } Yield; - + struct { expr_ty value; } YieldFrom; - + struct { expr_ty left; asdl_int_seq *ops; asdl_seq *comparators; } Compare; - + struct { expr_ty func; asdl_seq *args; @@ -265,51 +265,51 @@ expr_ty starargs; expr_ty kwargs; } Call; - + struct { object n; } Num; - + struct { string s; } Str; - + struct { bytes s; } Bytes; - + struct { expr_ty value; identifier attr; expr_context_ty ctx; } Attribute; - + struct { expr_ty value; slice_ty slice; expr_context_ty ctx; } Subscript; - + struct { expr_ty value; expr_context_ty ctx; } Starred; - + struct { identifier id; expr_context_ty ctx; } Name; - + struct { asdl_seq *elts; expr_context_ty ctx; } List; - + struct { asdl_seq *elts; expr_context_ty ctx; } Tuple; - + } v; int lineno; int col_offset; @@ -324,15 +324,15 @@ expr_ty upper; expr_ty step; } Slice; - + struct { asdl_seq *dims; } ExtSlice; - + struct { expr_ty value; } Index; - + } v; }; @@ -351,7 +351,7 @@ identifier name; asdl_seq *body; } ExceptHandler; - + } v; int lineno; int col_offset; diff -r 27ae40361ca5 Include/codecs.h --- a/Include/codecs.h Sat Aug 04 16:17:10 2012 +0200 +++ b/Include/codecs.h Sat Aug 04 22:11:40 2012 +0300 @@ -67,7 +67,7 @@ object is passed through the encoder function found for the given encoding using the error handling method defined by errors. errors may be NULL to use the default method defined for the codec. - + Raises a LookupError in case no encoder can be found. */ @@ -83,7 +83,7 @@ object is passed through the decoder function found for the given encoding using the error handling method defined by errors. errors may be NULL to use the default method defined for the codec. - + Raises a LookupError in case no encoder can be found. */ @@ -94,7 +94,7 @@ const char *errors ); -/* --- Codec Lookup APIs -------------------------------------------------- +/* --- Codec Lookup APIs -------------------------------------------------- All APIs return a codec object with incremented refcount and are based on _PyCodec_Lookup(). The same comments w/r to the encoding diff -r 27ae40361ca5 Include/grammar.h --- a/Include/grammar.h Sat Aug 04 16:17:10 2012 +0200 +++ b/Include/grammar.h Sat Aug 04 22:11:40 2012 +0300 @@ -37,7 +37,7 @@ typedef struct { int s_narcs; arc *s_arc; /* Array of arcs */ - + /* Optional accelerators */ int s_lower; /* Lowest label index */ int s_upper; /* Highest label index */ diff -r 27ae40361ca5 Include/methodobject.h --- a/Include/methodobject.h Sat Aug 04 16:17:10 2012 +0200 +++ b/Include/methodobject.h Sat Aug 04 22:11:40 2012 +0300 @@ -47,7 +47,7 @@ typedef struct PyMethodDef PyMethodDef; #define PyCFunction_New(ML, SELF) PyCFunction_NewEx((ML), (SELF), NULL) -PyAPI_FUNC(PyObject *) PyCFunction_NewEx(PyMethodDef *, PyObject *, +PyAPI_FUNC(PyObject *) PyCFunction_NewEx(PyMethodDef *, PyObject *, PyObject *); /* Flag passed to newmethodobject */ @@ -66,7 +66,7 @@ /* METH_COEXIST allows a method to be entered even though a slot has already filled the entry. When defined, the flag allows a separate - method, "__contains__" for example, to coexist with a defined + method, "__contains__" for example, to coexist with a defined slot like sq_contains. */ #define METH_COEXIST 0x0040 diff -r 27ae40361ca5 Include/node.h --- a/Include/node.h Sat Aug 04 16:17:10 2012 +0200 +++ b/Include/node.h Sat Aug 04 22:11:40 2012 +0300 @@ -26,7 +26,7 @@ /* Node access functions */ #define NCH(n) ((n)->n_nchildren) - + #define CHILD(n, i) (&(n)->n_child[i]) #define RCHILD(n, i) (CHILD(n, NCH(n) + i)) #define TYPE(n) ((n)->n_type) diff -r 27ae40361ca5 Include/opcode.h --- a/Include/opcode.h Sat Aug 04 16:17:10 2012 +0200 +++ b/Include/opcode.h Sat Aug 04 22:11:40 2012 +0300 @@ -121,9 +121,9 @@ #define MAKE_CLOSURE 134 /* same as MAKE_FUNCTION */ #define LOAD_CLOSURE 135 /* Load free variable from closure */ -#define LOAD_DEREF 136 /* Load and dereference from closure cell */ -#define STORE_DEREF 137 /* Store into cell */ -#define DELETE_DEREF 138 /* Delete closure cell */ +#define LOAD_DEREF 136 /* Load and dereference from closure cell */ +#define STORE_DEREF 137 /* Store into cell */ +#define DELETE_DEREF 138 /* Delete closure cell */ /* The next 3 opcodes must be contiguous and satisfy (CALL_FUNCTION_VAR - CALL_FUNCTION) & 3 == 1 */ diff -r 27ae40361ca5 Include/pyexpat.h --- a/Include/pyexpat.h Sat Aug 04 16:17:10 2012 +0200 +++ b/Include/pyexpat.h Sat Aug 04 22:11:40 2012 +0300 @@ -6,7 +6,7 @@ #define PyExpat_CAPI_MAGIC "pyexpat.expat_CAPI 1.0" #define PyExpat_CAPSULE_NAME "pyexpat.expat_CAPI" -struct PyExpat_CAPI +struct PyExpat_CAPI { char* magic; /* set to PyExpat_CAPI_MAGIC */ int size; /* set to sizeof(struct PyExpat_CAPI) */ diff -r 27ae40361ca5 Include/pyfpe.h --- a/Include/pyfpe.h Sat Aug 04 16:17:10 2012 +0200 +++ b/Include/pyfpe.h Sat Aug 04 22:11:40 2012 +0300 @@ -4,8 +4,8 @@ extern "C" { #endif /* - --------------------------------------------------------------------- - / Copyright (c) 1996. \ + --------------------------------------------------------------------- + / Copyright (c) 1996. \ | The Regents of the University of California. | | All rights reserved. | | | @@ -37,18 +37,18 @@ | opinions of authors expressed herein do not necessarily state or | | reflect those of the United States Government or the University | | of California, and shall not be used for advertising or product | - \ endorsement purposes. / - --------------------------------------------------------------------- + \ endorsement purposes. / + --------------------------------------------------------------------- */ /* * Define macros for handling SIGFPE. * Lee Busby, LLNL, November, 1996 * busby1@llnl.gov - * + * ********************************************* * Overview of the system for handling SIGFPE: - * + * * This file (Include/pyfpe.h) defines a couple of "wrapper" macros for * insertion into your Python C code of choice. Their proper use is * discussed below. The file Python/pyfpe.c defines a pair of global @@ -59,33 +59,33 @@ * named fpectl. This module is standard in every respect. It can be loaded * either statically or dynamically as you choose, and like any other * Python module, has no effect until you import it. - * + * * In the general case, there are three steps toward handling SIGFPE in any * Python code: - * + * * 1) Add the *_PROTECT macros to your C code as required to protect * dangerous floating point sections. - * + * * 2) Turn on the inclusion of the code by adding the ``--with-fpectl'' * flag at the time you run configure. If the fpectl or other modules * which use the *_PROTECT macros are to be dynamically loaded, be * sure they are compiled with WANT_SIGFPE_HANDLER defined. - * + * * 3) When python is built and running, import fpectl, and execute * fpectl.turnon_sigfpe(). This sets up the signal handler and enables * generation of SIGFPE whenever an exception occurs. From this point * on, any properly trapped SIGFPE should result in the Python * FloatingPointError exception. - * + * * Step 1 has been done already for the Python kernel code, and should be * done soon for the NumPy array package. Step 2 is usually done once at * python install time. Python's behavior with respect to SIGFPE is not * changed unless you also do step 3. Thus you can control this new * facility at compile time, or run time, or both. - * - ******************************** + * + ******************************** * Using the macros in your code: - * + * * static PyObject *foobar(PyObject *self,PyObject *args) * { * .... @@ -94,17 +94,17 @@ * PyFPE_END_PROTECT(result) * .... * } - * + * * If a floating point error occurs in dangerous_op, foobar returns 0 (NULL), * after setting the associated value of the FloatingPointError exception to * "Error in foobar". ``Dangerous_op'' can be a single operation, or a block * of code, function calls, or any combination, so long as no alternate * return is possible before the PyFPE_END_PROTECT macro is reached. - * + * * The macros can only be used in a function context where an error return * can be recognized as signaling a Python exception. (Generally, most * functions that return a PyObject * will qualify.) - * + * * Guido's original design suggestion for PyFPE_START_PROTECT and * PyFPE_END_PROTECT had them open and close a local block, with a locally * defined jmp_buf and jmp_buf pointer. This would allow recursive nesting @@ -112,17 +112,17 @@ * variables need to be declared with the "volatile" type qualifier to keep * setjmp from corrupting their values. Some current implementations seem * to be more restrictive. For example, the HPUX man page for setjmp says - * + * * Upon the return from a setjmp() call caused by a longjmp(), the * values of any non-static local variables belonging to the routine * from which setjmp() was called are undefined. Code which depends on * such values is not guaranteed to be portable. - * + * * I therefore decided on a more limited form of nesting, using a counter * variable (PyFPE_counter) to keep track of any recursion. If an exception * occurs in an ``inner'' pair of macros, the return will apparently * come from the outermost level. - * + * */ #ifdef WANT_SIGFPE_HANDLER @@ -146,14 +146,14 @@ * this statement so that it gets executed *before* the unsafe expression * which we're trying to protect. That pretty well messes things up, * of course. - * + * * If the expression(s) you're trying to protect don't happen to return a * value, you will need to manufacture a dummy result just to preserve the * correct ordering of statements. Note that the macro passes the address * of its argument (so you need to give it something which is addressable). * If your expression returns multiple results, pass the last such result * to PyFPE_END_PROTECT. - * + * * Note that PyFPE_dummy returns a double, which is cast to int. * This seeming insanity is to tickle the Floating Point Unit (FPU). * If an exception has occurred in a preceding floating point operation, diff -r 27ae40361ca5 Include/sliceobject.h --- a/Include/sliceobject.h Sat Aug 04 16:17:10 2012 +0200 +++ b/Include/sliceobject.h Sat Aug 04 22:11:40 2012 +0300 @@ -38,7 +38,7 @@ PyAPI_FUNC(int) PySlice_GetIndices(PyObject *r, Py_ssize_t length, Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step); PyAPI_FUNC(int) PySlice_GetIndicesEx(PyObject *r, Py_ssize_t length, - Py_ssize_t *start, Py_ssize_t *stop, + Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step, Py_ssize_t *slicelength); #ifdef __cplusplus diff -r 27ae40361ca5 Include/token.h --- a/Include/token.h Sat Aug 04 16:17:10 2012 +0200 +++ b/Include/token.h Sat Aug 04 22:11:40 2012 +0300 @@ -58,7 +58,7 @@ #define DOUBLESTAREQUAL 46 #define DOUBLESLASH 47 #define DOUBLESLASHEQUAL 48 -#define AT 49 +#define AT 49 #define RARROW 50 #define ELLIPSIS 51 /* Don't forget to update the table _PyParser_TokenNames in tokenizer.c! */ diff -r 27ae40361ca5 Include/ucnhash.h --- a/Include/ucnhash.h Sat Aug 04 16:17:10 2012 +0200 +++ b/Include/ucnhash.h Sat Aug 04 22:11:40 2012 +0300 @@ -16,7 +16,7 @@ int size; /* Get name for a given character code. Returns non-zero if - success, zero if not. Does not set Python exceptions. + success, zero if not. Does not set Python exceptions. If self is NULL, data come from the default version of the database. If it is not NULL, it should be a unicodedata.ucd_X_Y_Z object */ int (*getname)(PyObject *self, Py_UCS4 code, char* buffer, int buflen, diff -r 27ae40361ca5 Modules/_ctypes/darwin/dlfcn.h --- a/Modules/_ctypes/darwin/dlfcn.h Sat Aug 04 16:17:10 2012 +0200 +++ b/Modules/_ctypes/darwin/dlfcn.h Sat Aug 04 22:11:40 2012 +0300 @@ -1,7 +1,7 @@ /* Copyright (c) 2002 Jorge Acereda & Peter O'Gorman - + Portions may be copyright others, see the AUTHORS file included with this distribution. diff -r 27ae40361ca5 Modules/_ctypes/stgdict.c --- a/Modules/_ctypes/stgdict.c Sat Aug 04 16:17:10 2012 +0200 +++ b/Modules/_ctypes/stgdict.c Sat Aug 04 22:11:40 2012 +0300 @@ -483,7 +483,7 @@ char *fieldfmt = dict->format ? dict->format : "B"; char *fieldname = _PyUnicode_AsString(name); char *ptr; - Py_ssize_t len; + Py_ssize_t len; char *buf; if (fieldname == NULL) diff -r 27ae40361ca5 Modules/_elementtree.c --- a/Modules/_elementtree.c Sat Aug 04 16:17:10 2012 +0200 +++ b/Modules/_elementtree.c Sat Aug 04 22:11:40 2012 +0300 @@ -348,7 +348,7 @@ /* Helper function for extracting the attrib dictionary from a keywords dict. * This is required by some constructors/functions in this module that can - * either accept attrib as a keyword argument or all attributes splashed + * either accept attrib as a keyword argument or all attributes splashed * directly into *kwds. * If there is no 'attrib' keyword, return an empty dict. */ @@ -1844,7 +1844,7 @@ elementiter_next(ElementIterObject *it) { /* Sub-element iterator. - * + * * A short note on gettext: this function serves both the iter() and * itertext() methods to avoid code duplication. However, there are a few * small differences in the way these iterations work. Namely: @@ -1926,7 +1926,7 @@ continue; } else { - PyObject *tail = it->gettext ? JOIN_OBJ(cur_parent->tail) : Py_None; + PyObject *tail = it->gettext ? JOIN_OBJ(cur_parent->tail) : Py_None; ParentLocator *next = it->parent_stack->next; Py_XDECREF(it->parent_stack->parent); PyObject_Free(it->parent_stack); @@ -2844,7 +2844,7 @@ } } -static void +static void expat_start_doctype_handler(XMLParserObject *self, const XML_Char *doctype_name, const XML_Char *sysid, @@ -3049,7 +3049,7 @@ self_xp->handle_doctype = PyObject_GetAttrString(target, "doctype"); PyErr_Clear(); - + /* configure parser */ EXPAT(SetUserData)(self_xp->parser, self_xp); EXPAT(SetElementHandler)( diff -r 27ae40361ca5 Modules/_io/iobase.c --- a/Modules/_io/iobase.c Sat Aug 04 16:17:10 2012 +0200 +++ b/Modules/_io/iobase.c Sat Aug 04 22:11:40 2012 +0300 @@ -1,9 +1,9 @@ /* An implementation of the I/O abstract base classes hierarchy as defined by PEP 3116 - "New I/O" - + Classes defined here: IOBase, RawIOBase. - + Written by Amaury Forgeot d'Arc and Antoine Pitrou */ @@ -19,7 +19,7 @@ typedef struct { PyObject_HEAD - + PyObject *dict; PyObject *weakreflist; } iobase; @@ -828,7 +828,7 @@ int r; PyObject *chunks = PyList_New(0); PyObject *result; - + if (chunks == NULL) return NULL; diff -r 27ae40361ca5 Modules/_posixsubprocess.c --- a/Modules/_posixsubprocess.c Sat Aug 04 16:17:10 2012 +0200 +++ b/Modules/_posixsubprocess.c Sat Aug 04 22:11:40 2012 +0300 @@ -87,7 +87,7 @@ if (stat("/dev", &dev_stat) != 0) return 0; if (stat(FD_DIR, &dev_fd_stat) != 0) - return 0; + return 0; if (dev_stat.st_dev == dev_fd_stat.st_dev) return 0; /* / == /dev == /dev/fd means it is static. #fail */ return 1; @@ -545,7 +545,7 @@ PyObject *result; _Py_IDENTIFIER(isenabled); _Py_IDENTIFIER(disable); - + gc_module = PyImport_ImportModule("gc"); if (gc_module == NULL) return NULL; diff -r 27ae40361ca5 Modules/_sqlite/microprotocols.h --- a/Modules/_sqlite/microprotocols.h Sat Aug 04 16:17:10 2012 +0200 +++ b/Modules/_sqlite/microprotocols.h Sat Aug 04 22:11:40 2012 +0300 @@ -48,7 +48,7 @@ PyObject *obj, PyObject *proto, PyObject *alt); extern PyObject * - pysqlite_adapt(pysqlite_Cursor* self, PyObject *args); + pysqlite_adapt(pysqlite_Cursor* self, PyObject *args); #define pysqlite_adapt_doc \ "adapt(obj, protocol, alternate) -> adapt obj to given protocol. Non-standard." diff -r 27ae40361ca5 Modules/_ssl.c --- a/Modules/_ssl.c Sat Aug 04 16:17:10 2012 +0200 +++ b/Modules/_ssl.c Sat Aug 04 22:11:40 2012 +0300 @@ -1136,7 +1136,7 @@ const unsigned char *out; unsigned int outlen; - SSL_get0_next_proto_negotiated(self->ssl, + SSL_get0_next_proto_negotiated(self->ssl, &out, &outlen); if (out == NULL) @@ -1760,8 +1760,8 @@ #ifdef OPENSSL_NPN_NEGOTIATED /* this callback gets passed to SSL_CTX_set_next_protos_advertise_cb */ static int -_advertiseNPN_cb(SSL *s, - const unsigned char **data, unsigned int *len, +_advertiseNPN_cb(SSL *s, + const unsigned char **data, unsigned int *len, void *args) { PySSLContext *ssl_ctx = (PySSLContext *) args; @@ -1778,7 +1778,7 @@ } /* this callback gets passed to SSL_CTX_set_next_proto_select_cb */ static int -_selectNPN_cb(SSL *s, +_selectNPN_cb(SSL *s, unsigned char **out, unsigned char *outlen, const unsigned char *server, unsigned int server_len, void *args) @@ -2840,7 +2840,7 @@ } if (PyModule_AddObject(m, "lib_codes_to_names", lib_codes_to_names)) return NULL; - + /* OpenSSL version */ /* SSLeay() gives us the version of the library linked against, which could be different from the headers version. diff -r 27ae40361ca5 Modules/_testbuffer.c --- a/Modules/_testbuffer.c Sat Aug 04 16:17:10 2012 +0200 +++ b/Modules/_testbuffer.c Sat Aug 04 22:11:40 2012 +0300 @@ -189,7 +189,7 @@ elt->prev->next = elt->next; else nd->head = elt->next; - + if (elt->next) elt->next->prev = elt->prev; @@ -768,7 +768,7 @@ +-----------------+-----------+-------------+----------------+ | base.readonly | 0 | OK | OK | +-----------------+-----------+-------------+----------------+ - | base.format | NULL | OK | OK | + | base.format | NULL | OK | OK | +-----------------+-----------+-------------+----------------+ | base.ndim | 1 | 1 | OK | +-----------------+-----------+-------------+----------------+ @@ -2006,7 +2006,7 @@ { Py_buffer *base = &self->head->base; - if (base->obj == NULL) { + if (base->obj == NULL) { Py_RETURN_NONE; } Py_INCREF(base->obj); @@ -2533,7 +2533,7 @@ PyBuffer_Release(&v1); PyBuffer_Release(&v2); - ret = equal ? Py_True : Py_False; + ret = equal ? Py_True : Py_False; Py_INCREF(ret); return ret; } diff -r 27ae40361ca5 Modules/_threadmodule.c --- a/Modules/_threadmodule.c Sat Aug 04 16:17:10 2012 +0200 +++ b/Modules/_threadmodule.c Sat Aug 04 22:11:40 2012 +0300 @@ -68,7 +68,7 @@ Py_BEGIN_ALLOW_THREADS r = PyThread_acquire_lock_timed(lock, microseconds, 1); Py_END_ALLOW_THREADS - } + } if (r == PY_LOCK_INTR) { /* Run signal handlers if we were interrupted. Propagate diff -r 27ae40361ca5 Modules/_weakref.c --- a/Modules/_weakref.c Sat Aug 04 16:17:10 2012 +0200 +++ b/Modules/_weakref.c Sat Aug 04 22:11:40 2012 +0300 @@ -106,7 +106,7 @@ PyObject *m; m = PyModule_Create(&weakrefmodule); - + if (m != NULL) { Py_INCREF(&_PyWeakref_RefType); PyModule_AddObject(m, "ref", diff -r 27ae40361ca5 Modules/atexitmodule.c --- a/Modules/atexitmodule.c Sat Aug 04 16:17:10 2012 +0200 +++ b/Modules/atexitmodule.c Sat Aug 04 22:11:40 2012 +0300 @@ -67,7 +67,7 @@ if (exc_type) { Py_DECREF(exc_type); Py_XDECREF(exc_value); - Py_XDECREF(exc_tb); + Py_XDECREF(exc_tb); } PyErr_Fetch(&exc_type, &exc_value, &exc_tb); if (!PyErr_ExceptionMatches(PyExc_SystemExit)) { @@ -142,7 +142,7 @@ if (PyTuple_GET_SIZE(args) == 0) { PyErr_SetString(PyExc_TypeError, "register() takes at least 1 argument (0 given)"); - return NULL; + return NULL; } func = PyTuple_GET_ITEM(args, 0); @@ -154,7 +154,7 @@ new_callback = PyMem_Malloc(sizeof(atexit_callback)); if (new_callback == NULL) - return PyErr_NoMemory(); + return PyErr_NoMemory(); new_callback->args = PyTuple_GetSlice(args, 1, PyTuple_GET_SIZE(args)); if (new_callback->args == NULL) { @@ -299,7 +299,7 @@ modstate = GET_ATEXIT_STATE(m); modstate->callback_len = 32; modstate->ncallbacks = 0; - modstate->atexit_callbacks = PyMem_New(atexit_callback*, + modstate->atexit_callbacks = PyMem_New(atexit_callback*, modstate->callback_len); if (modstate->atexit_callbacks == NULL) return NULL; diff -r 27ae40361ca5 Modules/expat/expat.h --- a/Modules/expat/expat.h Sat Aug 04 16:17:10 2012 +0200 +++ b/Modules/expat/expat.h Sat Aug 04 22:11:40 2012 +0300 @@ -788,20 +788,20 @@ (resumable = 0) an already suspended parser. Some call-backs may still follow because they would otherwise get lost. Examples: - endElementHandler() for empty elements when stopped in - startElementHandler(), - - endNameSpaceDeclHandler() when stopped in endElementHandler(), + startElementHandler(), + - endNameSpaceDeclHandler() when stopped in endElementHandler(), and possibly others. Can be called from most handlers, including DTD related call-backs, except when parsing an external parameter entity and resumable != 0. Returns XML_STATUS_OK when successful, XML_STATUS_ERROR otherwise. - Possible error codes: + Possible error codes: - XML_ERROR_SUSPENDED: when suspending an already suspended parser. - XML_ERROR_FINISHED: when the parser has already finished. - XML_ERROR_SUSPEND_PE: when suspending while parsing an external PE. - When resumable != 0 (true) then parsing is suspended, that is, - XML_Parse() and XML_ParseBuffer() return XML_STATUS_SUSPENDED. + When resumable != 0 (true) then parsing is suspended, that is, + XML_Parse() and XML_ParseBuffer() return XML_STATUS_SUSPENDED. Otherwise, parsing is aborted, that is, XML_Parse() and XML_ParseBuffer() return XML_STATUS_ERROR with error code XML_ERROR_ABORTED. @@ -812,7 +812,7 @@ the externalEntityRefHandler() to call XML_StopParser() on the parent parser (recursively), if one wants to stop parsing altogether. - When suspended, parsing can be resumed by calling XML_ResumeParser(). + When suspended, parsing can be resumed by calling XML_ResumeParser(). */ XMLPARSEAPI(enum XML_Status) XML_StopParser(XML_Parser parser, XML_Bool resumable); @@ -820,7 +820,7 @@ /* Resumes parsing after it has been suspended with XML_StopParser(). Must not be called from within a handler call-back. Returns same status codes as XML_Parse() or XML_ParseBuffer(). - Additional error code XML_ERROR_NOT_SUSPENDED possible. + Additional error code XML_ERROR_NOT_SUSPENDED possible. *Note*: This must be called on the most deeply nested child parser instance @@ -932,7 +932,7 @@ be within the relevant markup. When called outside of the callback functions, the position indicated will be just past the last parse event (regardless of whether there was an associated callback). - + They may also be called after returning from a call to XML_Parse or XML_ParseBuffer. If the return value is XML_STATUS_ERROR then the location is the location of the character at which the error diff -r 27ae40361ca5 Modules/expat/expat_external.h --- a/Modules/expat/expat_external.h Sat Aug 04 16:17:10 2012 +0200 +++ b/Modules/expat/expat_external.h Sat Aug 04 22:11:40 2012 +0300 @@ -97,7 +97,7 @@ #ifdef XML_LARGE_SIZE /* Use large integers for file/stream positions. */ #if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400 -typedef __int64 XML_Index; +typedef __int64 XML_Index; typedef unsigned __int64 XML_Size; #else typedef long long XML_Index; diff -r 27ae40361ca5 Modules/expat/pyexpatns.h --- a/Modules/expat/pyexpatns.h Sat Aug 04 16:17:10 2012 +0200 +++ b/Modules/expat/pyexpatns.h Sat Aug 04 22:11:40 2012 +0300 @@ -26,7 +26,7 @@ * http://lxr.mozilla.org/seamonkey/source/modules/libimg/png/mozpngconf.h#115 * * The list of relevant exported symbols can be had with this command: - * + * nm pyexpat.so \ | grep -v " [a-zBUA] " \ | grep -v "_fini\|_init\|initpyexpat" diff -r 27ae40361ca5 Modules/gcmodule.c --- a/Modules/gcmodule.c Sat Aug 04 16:17:10 2012 +0200 +++ b/Modules/gcmodule.c Sat Aug 04 22:11:40 2012 +0300 @@ -118,7 +118,7 @@ /* NOTE: about untracking of mutable objects. - + Certain types of container cannot participate in a reference cycle, and so do not need to be tracked by the garbage collector. Untracking these objects reduces the cost of garbage collections. However, determining @@ -136,10 +136,10 @@ not survive until garbage collection. It is therefore not worthwhile to untrack eligible tuples at creation time. - Instead, all tuples except the empty tuple are tracked when created. - During garbage collection it is determined whether any surviving tuples - can be untracked. A tuple can be untracked if all of its contents are - already not tracked. Tuples are examined for untracking in all garbage + Instead, all tuples except the empty tuple are tracked when created. + During garbage collection it is determined whether any surviving tuples + can be untracked. A tuple can be untracked if all of its contents are + already not tracked. Tuples are examined for untracking in all garbage collection cycles. It may take more than one cycle to untrack a tuple. Dictionaries containing only immutable objects also do not need to be @@ -152,8 +152,8 @@ The module provides the python function is_tracked(obj), which returns the CURRENT tracking status of the object. Subsequent garbage collections may change the tracking status of the object. - - Untracking of certain containers was introduced in issue #4688, and + + Untracking of certain containers was introduced in issue #4688, and the algorithm was refined in response to issue #14775. */ diff -r 27ae40361ca5 Modules/itertoolsmodule.c --- a/Modules/itertoolsmodule.c Sat Aug 04 16:17:10 2012 +0200 +++ b/Modules/itertoolsmodule.c Sat Aug 04 22:11:40 2012 +0300 @@ -945,7 +945,7 @@ /* Create a new cycle with the iterator tuple, then set * the saved state on it. */ - return Py_BuildValue("O(O)(Oi)", Py_TYPE(lz), + return Py_BuildValue("O(O)(Oi)", Py_TYPE(lz), lz->it, lz->saved, lz->firstpass); } @@ -3132,7 +3132,7 @@ goto err; PyTuple_SET_ITEM(indices, i, index); } - + cycles = PyTuple_New(po->r); if (cycles == NULL) goto err; @@ -3158,7 +3158,7 @@ { PyObject *indices, *cycles, *result; Py_ssize_t n, i; - + if (!PyArg_ParseTuple(state, "O!O!", &PyTuple_Type, &indices, &PyTuple_Type, &cycles)) @@ -3337,18 +3337,18 @@ accumulate_next(accumulateobject *lz) { PyObject *val, *oldtotal, *newtotal; - + val = PyIter_Next(lz->it); if (val == NULL) return NULL; - + if (lz->total == NULL) { Py_INCREF(val); lz->total = val; return lz->total; } - if (lz->binop == NULL) + if (lz->binop == NULL) newtotal = PyNumber_Add(lz->total, val); else newtotal = PyObject_CallFunctionObjArgs(lz->binop, lz->total, val, NULL); @@ -3359,7 +3359,7 @@ oldtotal = lz->total; lz->total = newtotal; Py_DECREF(oldtotal); - + Py_INCREF(newtotal); return newtotal; } @@ -4327,7 +4327,7 @@ static PyObject * zip_longest_reduce(ziplongestobject *lz) { - + /* Create a new tuple with empty sequences where appropriate to pickle. * Then use setstate to set the fillvalue */ diff -r 27ae40361ca5 Modules/makesetup --- a/Modules/makesetup Sat Aug 04 16:17:10 2012 +0200 +++ b/Modules/makesetup Sat Aug 04 22:11:40 2012 +0300 @@ -270,7 +270,7 @@ *) sed -e " 1i$NL/* Generated automatically from $config by makesetup. */ /MARKER 1/i$NL$EXTDECLS - + /MARKER 2/i$NL$INITBITS " $config >config.c diff -r 27ae40361ca5 Modules/parsermodule.c --- a/Modules/parsermodule.c Sat Aug 04 16:17:10 2012 +0200 +++ b/Modules/parsermodule.c Sat Aug 04 22:11:40 2012 +0300 @@ -2742,7 +2742,7 @@ int nch = NCH(tree); int res = (validate_ntype(tree, argument) && ((nch == 1) || (nch == 2) || (nch == 3))); - if (res) + if (res) res = validate_test(CHILD(tree, 0)); if (res && (nch == 2)) res = validate_comp_for(CHILD(tree, 1)); diff -r 27ae40361ca5 Modules/socketmodule.c --- a/Modules/socketmodule.c Sat Aug 04 16:17:10 2012 +0200 +++ b/Modules/socketmodule.c Sat Aug 04 22:11:40 2012 +0300 @@ -1700,7 +1700,7 @@ return 0; } #endif - + #ifdef PF_SYSTEM case PF_SYSTEM: switch (s->sock_proto) { @@ -1708,10 +1708,10 @@ case SYSPROTO_CONTROL: { struct sockaddr_ctl *addr; - + addr = (struct sockaddr_ctl *)addr_ret; addr->sc_family = AF_SYSTEM; - addr->ss_sysaddr = AF_SYS_CONTROL; + addr->ss_sysaddr = AF_SYS_CONTROL; if (PyUnicode_Check(args)) { struct ctl_info info; @@ -1737,17 +1737,17 @@ "cannot find kernel control with provided name"); return 0; } - + addr->sc_id = info.ctl_id; addr->sc_unit = 0; } else if (!PyArg_ParseTuple(args, "II", &(addr->sc_id), &(addr->sc_unit))) { PyErr_SetString(PyExc_TypeError, "getsockaddrarg: " "expected str or tuple of two ints"); - + return 0; } - + *len_ret = sizeof(*addr); return 1; } @@ -1864,7 +1864,7 @@ return 1; } #endif - + #ifdef PF_SYSTEM case PF_SYSTEM: switch(s->sock_proto) { diff -r 27ae40361ca5 Modules/xxlimited.c --- a/Modules/xxlimited.c Sat Aug 04 16:17:10 2012 +0200 +++ b/Modules/xxlimited.c Sat Aug 04 22:11:40 2012 +0300 @@ -169,7 +169,7 @@ /* ---------- */ -static PyType_Slot Str_Type_slots[] = { +static PyType_Slot Str_Type_slots[] = { {Py_tp_base, NULL}, /* filled out in module init function */ {0, 0}, }; diff -r 27ae40361ca5 Objects/abstract.c --- a/Objects/abstract.c Sat Aug 04 16:17:10 2012 +0200 +++ b/Objects/abstract.c Sat Aug 04 22:11:40 2012 +0300 @@ -1217,7 +1217,7 @@ to be an int or have an __int__ method. Steals integral's reference. error_format will be used to create the TypeError if integral isn't actually an Integral instance. error_format should be a format string - that can accept a char* naming integral's type. + that can accept a char* naming integral's type. */ static PyObject * convert_integral_to_int(PyObject *integral, const char *error_format) @@ -1237,7 +1237,7 @@ } PyErr_Format(PyExc_TypeError, error_format, Py_TYPE(integral)->tp_name); Py_DECREF(integral); - return NULL; + return NULL; } diff -r 27ae40361ca5 Objects/iterobject.c --- a/Objects/iterobject.c Sat Aug 04 16:17:10 2012 +0200 +++ b/Objects/iterobject.c Sat Aug 04 22:11:40 2012 +0300 @@ -207,7 +207,7 @@ Py_DECREF(args); if (result != NULL) { int ok; - ok = PyObject_RichCompareBool(it->it_sentinel, result, Py_EQ); + ok = PyObject_RichCompareBool(it->it_sentinel, result, Py_EQ); if (ok == 0) return result; /* Common case, fast path */ Py_DECREF(result); diff -r 27ae40361ca5 Objects/memoryobject.c --- a/Objects/memoryobject.c Sat Aug 04 16:17:10 2012 +0200 +++ b/Objects/memoryobject.c Sat Aug 04 22:11:40 2012 +0300 @@ -868,7 +868,7 @@ The logical structure of the input and output buffers is the same (i.e. tolist(input) == tolist(output)), but the physical layout in memory can be explicitly chosen. - + As usual, if buffertype=PyBUF_WRITE, the exporter's buffer must be writable, otherwise it may be writable or read-only. @@ -1169,7 +1169,7 @@ view->suboffsets = NULL; init_flags(mv); - + ret = 0; out: @@ -2091,7 +2091,7 @@ { Py_buffer *view; view = &(self->view); - + CHECK_RELEASED(self); if (view->ndim == 0) { @@ -2445,7 +2445,7 @@ result: if (equal < 0) - res = Py_NotImplemented; + res = Py_NotImplemented; else if ((equal && op == Py_EQ) || (!equal && op == Py_NE)) res = Py_True; else diff -r 27ae40361ca5 Objects/rangeobject.c --- a/Objects/rangeobject.c Sat Aug 04 16:17:10 2012 +0200 +++ b/Objects/rangeobject.c Sat Aug 04 22:11:40 2012 +0300 @@ -969,7 +969,7 @@ { PyObject *start=NULL, *stop=NULL, *step=NULL; PyObject *range; - + /* create a range object for pickling */ start = PyLong_FromLong(r->start); if (start == NULL) diff -r 27ae40361ca5 Objects/setobject.c --- a/Objects/setobject.c Sat Aug 04 16:17:10 2012 +0200 +++ b/Objects/setobject.c Sat Aug 04 22:11:40 2012 +0300 @@ -834,7 +834,7 @@ /* copy the itertor state */ tmp = *si; Py_XINCREF(tmp.si_set); - + /* iterate the temporary into a list */ for(;;) { PyObject *element = setiter_iternext(&tmp); diff -r 27ae40361ca5 Objects/stringlib/transmogrify.h --- a/Objects/stringlib/transmogrify.h Sat Aug 04 16:17:10 2012 +0200 +++ b/Objects/stringlib/transmogrify.h Sat Aug 04 22:11:40 2012 +0300 @@ -18,10 +18,10 @@ size_t i, j; PyObject *u; int tabsize = 8; - + if (!PyArg_ParseTuple(args, "|i:expandtabs", &tabsize)) return NULL; - + /* First pass: determine size of output string */ i = j = 0; e = STRINGLIB_STR(self) + STRINGLIB_LEN(self); @@ -48,20 +48,20 @@ } } } - + if ((i + j) > PY_SSIZE_T_MAX) { PyErr_SetString(PyExc_OverflowError, "result is too long"); return NULL; } - + /* Second pass: create output string and fill it */ u = STRINGLIB_NEW(NULL, i + j); if (!u) return NULL; - + j = 0; q = STRINGLIB_STR(u); - + for (p = STRINGLIB_STR(self); p < e; p++) if (*p == '\t') { if (tabsize > 0) { @@ -77,7 +77,7 @@ if (*p == '\n' || *p == '\r') j = 0; } - + return u; } diff -r 27ae40361ca5 Objects/structseq.c --- a/Objects/structseq.c Sat Aug 04 16:17:10 2012 +0200 +++ b/Objects/structseq.c Sat Aug 04 22:11:40 2012 +0300 @@ -59,7 +59,7 @@ structseq_dealloc(PyStructSequence *obj) { Py_ssize_t i, size; - + size = REAL_SIZE(obj); for (i = 0; i < size; ++i) { Py_XDECREF(obj->ob_item[i]); diff -r 27ae40361ca5 Objects/typeobject.c --- a/Objects/typeobject.c Sat Aug 04 16:17:10 2012 +0200 +++ b/Objects/typeobject.c Sat Aug 04 22:11:40 2012 +0300 @@ -2385,7 +2385,7 @@ char *s; char *res_start = (char*)res; PyType_Slot *slot; - + /* Set the type name and qualname */ s = strrchr(spec->name, '.'); if (s == NULL) @@ -2406,7 +2406,7 @@ type->tp_name = spec->name; if (!type->tp_name) goto fail; - + /* Adjust for empty tuple bases */ if (!bases) { base = &PyBaseObject_Type; @@ -2490,7 +2490,7 @@ /* Set type.__module__ */ s = strrchr(spec->name, '.'); if (s != NULL) - _PyDict_SetItemId(type->tp_dict, &PyId___module__, + _PyDict_SetItemId(type->tp_dict, &PyId___module__, PyUnicode_FromStringAndSize( spec->name, (Py_ssize_t)(s - spec->name))); diff -r 27ae40361ca5 Objects/unicodectype.c --- a/Objects/unicodectype.c Sat Aug 04 16:17:10 2012 +0200 +++ b/Objects/unicodectype.c Sat Aug 04 22:11:40 2012 +0300 @@ -27,7 +27,7 @@ #define EXTENDED_CASE_MASK 0x4000 typedef struct { - /* + /* These are either deltas to the character or offsets in _PyUnicode_ExtendedCase. */ diff -r 27ae40361ca5 PC/VS8.0/kill_python.c --- a/PC/VS8.0/kill_python.c Sat Aug 04 16:17:10 2012 +0200 +++ b/PC/VS8.0/kill_python.c Sat Aug 04 22:11:40 2012 +0300 @@ -62,7 +62,7 @@ continue; len = wcsnlen_s(me.szExePath, MAX_PATH) - KILL_PYTHON_EXE_LEN; - wcsncpy_s(path, MAX_PATH+1, me.szExePath, len); + wcsncpy_s(path, MAX_PATH+1, me.szExePath, len); break; @@ -80,8 +80,8 @@ * looking for python processes. When we find one, verify it lives * in the same directory we live in. If it does, kill it. If we're * unable to kill it, treat this as a fatal error and return 1. - * - * The rationale behind this is that we're called at the start of the + * + * The rationale behind this is that we're called at the start of the * build process on the basis that we'll take care of killing any * running instances, such that the build won't encounter permission * denied errors during linking. If we can't kill one of the processes, @@ -104,11 +104,11 @@ do { /* - * XXX TODO: if we really wanted to be fancy, we could check the + * XXX TODO: if we really wanted to be fancy, we could check the * modules for all processes (not just the python[_d].exe ones) * and see if any of our DLLs are loaded (i.e. python33[_d].dll), * as that would also inhibit our ability to rebuild the solution. - * Not worth loosing sleep over though; for now, a simple check + * Not worth loosing sleep over though; for now, a simple check * for just the python executable should be sufficient. */ @@ -119,7 +119,7 @@ /* It's a python process, so figure out which directory it's in... */ hsm = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, pe.th32ProcessID); if (hsm == INVALID_HANDLE_VALUE) - /* + /* * If our module snapshot fails (which will happen if we don't own * the process), just ignore it and continue. (It seems different * versions of Windows return different values for GetLastError() diff -r 27ae40361ca5 PC/VS9.0/kill_python.c --- a/PC/VS9.0/kill_python.c Sat Aug 04 16:17:10 2012 +0200 +++ b/PC/VS9.0/kill_python.c Sat Aug 04 22:11:40 2012 +0300 @@ -62,7 +62,7 @@ continue; len = wcsnlen_s(me.szExePath, MAX_PATH) - KILL_PYTHON_EXE_LEN; - wcsncpy_s(path, MAX_PATH+1, me.szExePath, len); + wcsncpy_s(path, MAX_PATH+1, me.szExePath, len); break; @@ -80,8 +80,8 @@ * looking for python processes. When we find one, verify it lives * in the same directory we live in. If it does, kill it. If we're * unable to kill it, treat this as a fatal error and return 1. - * - * The rationale behind this is that we're called at the start of the + * + * The rationale behind this is that we're called at the start of the * build process on the basis that we'll take care of killing any * running instances, such that the build won't encounter permission * denied errors during linking. If we can't kill one of the processes, @@ -104,11 +104,11 @@ do { /* - * XXX TODO: if we really wanted to be fancy, we could check the + * XXX TODO: if we really wanted to be fancy, we could check the * modules for all processes (not just the python[_d].exe ones) * and see if any of our DLLs are loaded (i.e. python33[_d].dll), * as that would also inhibit our ability to rebuild the solution. - * Not worth loosing sleep over though; for now, a simple check + * Not worth loosing sleep over though; for now, a simple check * for just the python executable should be sufficient. */ @@ -119,7 +119,7 @@ /* It's a python process, so figure out which directory it's in... */ hsm = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, pe.th32ProcessID); if (hsm == INVALID_HANDLE_VALUE) - /* + /* * If our module snapshot fails (which will happen if we don't own * the process), just ignore it and continue. (It seems different * versions of Windows return different values for GetLastError() diff -r 27ae40361ca5 PC/VS9.0/make_buildinfo.c --- a/PC/VS9.0/make_buildinfo.c Sat Aug 04 16:17:10 2012 +0200 +++ b/PC/VS9.0/make_buildinfo.c Sat Aug 04 22:11:40 2012 +0300 @@ -80,7 +80,7 @@ rc = system(cmdline); if (rc == 0) { FILE * fp; - + if (fopen_s(&fp, filename, "r") == 0) { char * cp = fgets(cmdline, CMD_SIZE, fp); diff -r 27ae40361ca5 PC/launcher.c --- a/PC/launcher.c Sat Aug 04 16:17:10 2012 +0200 +++ b/PC/launcher.c Sat Aug 04 22:11:40 2012 +0300 @@ -100,7 +100,7 @@ #if !defined(_WINDOWS) fwprintf(stderr, L"%s\n", message); #else - MessageBox(NULL, message, TEXT("Python Launcher is sorry to say ..."), MB_OK); + MessageBox(NULL, message, TEXT("Python Launcher is sorry to say ..."), MB_OK); #endif ExitProcess(rc); } @@ -322,7 +322,7 @@ locate_pythons_for_key(HKEY_CURRENT_USER, KEY_READ | KEY_WOW64_64KEY); locate_pythons_for_key(HKEY_LOCAL_MACHINE, KEY_READ | KEY_WOW64_64KEY); } -#endif +#endif // now hit the "native" key for this process bittedness. debug(L"locating Pythons in native registry\n"); locate_pythons_for_key(HKEY_CURRENT_USER, KEY_READ); diff -r 27ae40361ca5 PC/os2vacpp/pyconfig.h --- a/PC/os2vacpp/pyconfig.h Sat Aug 04 16:17:10 2012 +0200 +++ b/PC/os2vacpp/pyconfig.h Sat Aug 04 22:11:40 2012 +0300 @@ -17,7 +17,7 @@ * MACFILESYS Macintosh-Style * UNIXFILESYS Unix-Style * AMIGAFILESYS AmigaDOS-Style - * + * * Because of the different compilers and operating systems in * use on the Intel platform, neither the compiler name nor * the operating system name is sufficient. diff -r 27ae40361ca5 PC/w9xpopen.c --- a/PC/w9xpopen.c Sat Aug 04 16:17:10 2012 +0200 +++ b/PC/w9xpopen.c Sat Aug 04 22:11:40 2012 +0300 @@ -12,7 +12,7 @@ * its own redirected standard handles to the 16-bit child. * AKA solution to the problem described in KB: Q150956. - */ + */ #define WIN32_LEAN_AND_MEAN #include @@ -56,7 +56,7 @@ To keep things simple calculating the buffer size, we assume every character is a quote - ie, we allocate double what we need in the worst case. As this is only double the command line passed - to us, there is a good chance this is reasonably small, so the total + to us, there is a good chance this is reasonably small, so the total allocation will almost always be < 512 bytes. */ for (i=1;iasync_exc != NULL) { _PyEval_SignalAsyncExc(); } - + MUTEX_UNLOCK(gil_mutex); errno = err; } diff -r 27ae40361ca5 Python/condvar.h --- a/Python/condvar.h Sat Aug 04 16:17:10 2012 +0200 +++ b/Python/condvar.h Sat Aug 04 22:11:40 2012 +0300 @@ -1,4 +1,4 @@ -/* +/* * Portable condition variable support for windows and pthreads. * Everything is inline, this header can be included where needed. * @@ -105,7 +105,7 @@ return 1; else if (r) return -1; - else + else return 0; } @@ -166,7 +166,7 @@ The following read can be edificating (or not): http://www.cse.wustl.edu/~schmidt/win32-cv-1.html - See also + See also */ typedef CRITICAL_SECTION PyMUTEX_T; @@ -256,7 +256,7 @@ * a new thread comes along, it will pass right throuhgh, having * adjusted it to (waiting == 0 && sem.count == 0). */ - + if (wait == WAIT_FAILED) return -1; /* return 0 on success, 1 on timeout */ diff -r 27ae40361ca5 Python/dtoa.c --- a/Python/dtoa.c Sat Aug 04 16:17:10 2012 +0200 +++ b/Python/dtoa.c Sat Aug 04 22:11:40 2012 +0300 @@ -1070,7 +1070,7 @@ b = Balloc(1); if (b == NULL) return NULL; - + /* First construct b and e assuming that scale == 0. */ b->wds = 2; b->x[0] = word1(d); diff -r 27ae40361ca5 Python/pyfpe.c --- a/Python/pyfpe.c Sat Aug 04 16:17:10 2012 +0200 +++ b/Python/pyfpe.c Sat Aug 04 22:11:40 2012 +0300 @@ -1,6 +1,6 @@ #include "pyconfig.h" #include "pyfpe.h" -/* +/* * The signal handler for SIGFPE is actually declared in an external * module fpectl, or as preferred by the user. These variable * definitions are required in order to compile Python without @@ -13,7 +13,7 @@ int PyFPE_counter = 0; #endif -/* Have this outside the above #ifdef, since some picky ANSI compilers issue a +/* Have this outside the above #ifdef, since some picky ANSI compilers issue a warning when compiling an empty file. */ double diff -r 27ae40361ca5 Python/thread_nt.h --- a/Python/thread_nt.h Sat Aug 04 16:17:10 2012 +0200 +++ b/Python/thread_nt.h Sat Aug 04 22:11:40 2012 +0300 @@ -107,7 +107,7 @@ result = PyCOND_SIGNAL(&mutex->cv); result &= PyMUTEX_UNLOCK(&mutex->cs); return result; -} +} #else /* if ! _PY_USE_CV_LOCKS */