comparison Python/sysmodule.c @ 46472:fb8d3e1f6161 legacy-trunk

Fix indentation in sysmodule.c
author Benjamin Peterson <benjamin@python.org>
date Fri, 18 Apr 2008 20:45:33 +0000
parents 39ea2fc4503d
children aef3501d8e77
comparison
equal deleted inserted replaced
46471:4f8261b92fc5 46472:fb8d3e1f6161
1297 /* Make backup copies for cleanup */ 1297 /* Make backup copies for cleanup */
1298 PyDict_SetItemString(sysdict, "__stdin__", sysin); 1298 PyDict_SetItemString(sysdict, "__stdin__", sysin);
1299 PyDict_SetItemString(sysdict, "__stdout__", sysout); 1299 PyDict_SetItemString(sysdict, "__stdout__", sysout);
1300 PyDict_SetItemString(sysdict, "__stderr__", syserr); 1300 PyDict_SetItemString(sysdict, "__stderr__", syserr);
1301 PyDict_SetItemString(sysdict, "__displayhook__", 1301 PyDict_SetItemString(sysdict, "__displayhook__",
1302 PyDict_GetItemString(sysdict, "displayhook")); 1302 PyDict_GetItemString(sysdict, "displayhook"));
1303 PyDict_SetItemString(sysdict, "__excepthook__", 1303 PyDict_SetItemString(sysdict, "__excepthook__",
1304 PyDict_GetItemString(sysdict, "excepthook")); 1304 PyDict_GetItemString(sysdict, "excepthook"));
1305 Py_XDECREF(sysin); 1305 Py_XDECREF(sysin);
1306 Py_XDECREF(sysout); 1306 Py_XDECREF(sysout);
1307 Py_XDECREF(syserr); 1307 Py_XDECREF(syserr);
1308 1308
1309 SET_SYS_FROM_STRING("version", 1309 SET_SYS_FROM_STRING("version",
1310 PyString_FromString(Py_GetVersion())); 1310 PyString_FromString(Py_GetVersion()));
1311 SET_SYS_FROM_STRING("hexversion", 1311 SET_SYS_FROM_STRING("hexversion",
1312 PyInt_FromLong(PY_VERSION_HEX)); 1312 PyInt_FromLong(PY_VERSION_HEX));
1313 svnversion_init(); 1313 svnversion_init();
1314 SET_SYS_FROM_STRING("subversion", 1314 SET_SYS_FROM_STRING("subversion",
1315 Py_BuildValue("(ssz)", "CPython", branch, 1315 Py_BuildValue("(ssz)", "CPython", branch,
1316 svn_revision)); 1316 svn_revision));
1317 SET_SYS_FROM_STRING("dont_write_bytecode", 1317 SET_SYS_FROM_STRING("dont_write_bytecode",
1318 PyBool_FromLong(Py_DontWriteBytecodeFlag)); 1318 PyBool_FromLong(Py_DontWriteBytecodeFlag));
1319 /* 1319 /*
1320 * These release level checks are mutually exclusive and cover 1320 * These release level checks are mutually exclusive and cover
1321 * the field, so don't get too fancy with the pre-processor! 1321 * the field, so don't get too fancy with the pre-processor!
1322 */ 1322 */
1323 #if PY_RELEASE_LEVEL == PY_RELEASE_LEVEL_ALPHA 1323 #if PY_RELEASE_LEVEL == PY_RELEASE_LEVEL_ALPHA