@@ -349,7 +349,7 @@ Py_Finalize(void)
349349 * XXX in <function callback at 0x008F5718> ignored
350350 * XXX but I'm unclear on exactly how that one happens. In any case,
351351 * XXX I haven't seen a real-life report of either of these.
352- */
352+ */
353353 PyGC_Collect ();
354354
355355 /* Destroy all modules */
@@ -690,15 +690,15 @@ PyRun_InteractiveLoopFlags(FILE *fp, const char *filename, PyCompilerFlags *flag
690690#define PARSER_FLAGS (flags ) \
691691 ((flags) ? ((((flags)->cf_flags & PyCF_DONT_IMPLY_DEDENT) ? \
692692 PyPARSE_DONT_IMPLY_DEDENT : 0) \
693- | ((flags)->cf_flags & CO_FUTURE_WITH_STATEMENT ? \
694- PyPARSE_WITH_IS_KEYWORD : 0)) : 0)
693+ | ((flags)->cf_flags & CO_FUTURE_WITH_STATEMENT ? \
694+ PyPARSE_WITH_IS_KEYWORD : 0)) : 0)
695695
696696int
697697PyRun_InteractiveOneFlags (FILE * fp , const char * filename , PyCompilerFlags * flags )
698698{
699699 PyObject * m , * d , * v , * w ;
700700 mod_ty mod ;
701- PyArena * arena ;
701+ PyArena * arena ;
702702 char * ps1 = "" , * ps2 = "" ;
703703 int errcode = 0 ;
704704
@@ -718,14 +718,14 @@ PyRun_InteractiveOneFlags(FILE *fp, const char *filename, PyCompilerFlags *flags
718718 else if (PyString_Check (w ))
719719 ps2 = PyString_AsString (w );
720720 }
721- arena = PyArena_New ();
721+ arena = PyArena_New ();
722722 mod = PyParser_ASTFromFile (fp , filename ,
723723 Py_single_input , ps1 , ps2 ,
724724 flags , & errcode , arena );
725725 Py_XDECREF (v );
726726 Py_XDECREF (w );
727727 if (mod == NULL ) {
728- PyArena_Free (arena );
728+ PyArena_Free (arena );
729729 if (errcode == E_EOF ) {
730730 PyErr_Clear ();
731731 return E_EOF ;
@@ -735,12 +735,12 @@ PyRun_InteractiveOneFlags(FILE *fp, const char *filename, PyCompilerFlags *flags
735735 }
736736 m = PyImport_AddModule ("__main__" );
737737 if (m == NULL ) {
738- PyArena_Free (arena );
738+ PyArena_Free (arena );
739739 return -1 ;
740740 }
741741 d = PyModule_GetDict (m );
742742 v = run_mod (mod , filename , d , d , flags , arena );
743- PyArena_Free (arena );
743+ PyArena_Free (arena );
744744 if (v == NULL ) {
745745 PyErr_Print ();
746746 return -1 ;
@@ -868,7 +868,7 @@ parse_syntax_error(PyObject *err, PyObject **message, const char **filename,
868868 /* old style errors */
869869 if (PyTuple_Check (err ))
870870 return PyArg_ParseTuple (err , "O(ziiz)" , message , filename ,
871- lineno , offset , text );
871+ lineno , offset , text );
872872
873873 /* new style errors. `err' is an instance */
874874
@@ -965,8 +965,8 @@ print_error_text(PyObject *f, int offset, const char *text)
965965static void
966966handle_system_exit (void )
967967{
968- PyObject * exception , * value , * tb ;
969- int exitcode = 0 ;
968+ PyObject * exception , * value , * tb ;
969+ int exitcode = 0 ;
970970
971971 PyErr_Fetch (& exception , & value , & tb );
972972 if (Py_FlushLine ())
@@ -994,11 +994,11 @@ handle_system_exit(void)
994994 exitcode = 1 ;
995995 }
996996 done :
997- /* Restore and clear the exception info, in order to properly decref
998- * the exception, value, and traceback. If we just exit instead,
999- * these leak, which confuses PYTHONDUMPREFS output, and may prevent
1000- * some finalizers from running.
1001- */
997+ /* Restore and clear the exception info, in order to properly decref
998+ * the exception, value, and traceback. If we just exit instead,
999+ * these leak, which confuses PYTHONDUMPREFS output, and may prevent
1000+ * some finalizers from running.
1001+ */
10021002 PyErr_Restore (exception , value , tb );
10031003 PyErr_Clear ();
10041004 Py_Exit (exitcode );
@@ -1027,7 +1027,7 @@ PyErr_PrintEx(int set_sys_last_vars)
10271027 hook = PySys_GetObject ("excepthook" );
10281028 if (hook ) {
10291029 PyObject * args = PyTuple_Pack (3 ,
1030- exception , v ? v : Py_None , tb ? tb : Py_None );
1030+ exception , v ? v : Py_None , tb ? tb : Py_None );
10311031 PyObject * result = PyEval_CallObject (hook , args );
10321032 if (result == NULL ) {
10331033 PyObject * exception2 , * v2 , * tb2 ;
@@ -1158,12 +1158,12 @@ PyRun_StringFlags(const char *str, int start, PyObject *globals,
11581158 PyObject * locals , PyCompilerFlags * flags )
11591159{
11601160 PyObject * ret = NULL ;
1161- PyArena * arena = PyArena_New ();
1161+ PyArena * arena = PyArena_New ();
11621162 mod_ty mod = PyParser_ASTFromString (str , "<string>" , start , flags ,
1163- arena );
1163+ arena );
11641164 if (mod != NULL )
11651165 ret = run_mod (mod , "<string>" , globals , locals , flags , arena );
1166- PyArena_Free (arena );
1166+ PyArena_Free (arena );
11671167 return ret ;
11681168}
11691169
@@ -1172,17 +1172,17 @@ PyRun_FileExFlags(FILE *fp, const char *filename, int start, PyObject *globals,
11721172 PyObject * locals , int closeit , PyCompilerFlags * flags )
11731173{
11741174 PyObject * ret ;
1175- PyArena * arena = PyArena_New ();
1175+ PyArena * arena = PyArena_New ();
11761176 mod_ty mod = PyParser_ASTFromFile (fp , filename , start , 0 , 0 ,
11771177 flags , NULL , arena );
11781178 if (mod == NULL ) {
1179- PyArena_Free (arena );
1179+ PyArena_Free (arena );
11801180 return NULL ;
1181- }
1181+ }
11821182 if (closeit )
11831183 fclose (fp );
11841184 ret = run_mod (mod , filename , globals , locals , flags , arena );
1185- PyArena_Free (arena );
1185+ PyArena_Free (arena );
11861186 return ret ;
11871187}
11881188
@@ -1237,34 +1237,34 @@ Py_CompileStringFlags(const char *str, const char *filename, int start,
12371237 PyCompilerFlags * flags )
12381238{
12391239 PyCodeObject * co ;
1240- PyArena * arena = PyArena_New ();
1240+ PyArena * arena = PyArena_New ();
12411241 mod_ty mod = PyParser_ASTFromString (str , filename , start , flags , arena );
12421242 if (mod == NULL ) {
1243- PyArena_Free (arena );
1243+ PyArena_Free (arena );
12441244 return NULL ;
1245- }
1245+ }
12461246 if (flags && (flags -> cf_flags & PyCF_ONLY_AST )) {
12471247 PyObject * result = PyAST_mod2obj (mod );
12481248 PyArena_Free (arena );
12491249 return result ;
12501250 }
12511251 co = PyAST_Compile (mod , filename , flags , arena );
1252- PyArena_Free (arena );
1252+ PyArena_Free (arena );
12531253 return (PyObject * )co ;
12541254}
12551255
12561256struct symtable *
12571257Py_SymtableString (const char * str , const char * filename , int start )
12581258{
12591259 struct symtable * st ;
1260- PyArena * arena = PyArena_New ();
1260+ PyArena * arena = PyArena_New ();
12611261 mod_ty mod = PyParser_ASTFromString (str , filename , start , NULL , arena );
12621262 if (mod == NULL ) {
1263- PyArena_Free (arena );
1263+ PyArena_Free (arena );
12641264 return NULL ;
1265- }
1265+ }
12661266 st = PySymtable_Build (mod , filename , 0 );
1267- PyArena_Free (arena );
1267+ PyArena_Free (arena );
12681268 return st ;
12691269}
12701270
@@ -1292,7 +1292,7 @@ PyParser_ASTFromString(const char *s, const char *filename, int start,
12921292mod_ty
12931293PyParser_ASTFromFile (FILE * fp , const char * filename , int start , char * ps1 ,
12941294 char * ps2 , PyCompilerFlags * flags , int * errcode ,
1295- PyArena * arena )
1295+ PyArena * arena )
12961296{
12971297 mod_ty mod ;
12981298 perrdetail err ;
@@ -1448,7 +1448,7 @@ err_input(perrdetail *err)
14481448 }
14491449 v = Py_BuildValue ("(ziiz)" , err -> filename ,
14501450 err -> lineno , err -> offset , err -> text );
1451- if (err -> text != NULL ) {
1451+ if (err -> text != NULL ) {
14521452 PyMem_DEL (err -> text );
14531453 err -> text = NULL ;
14541454 }
0 commit comments