summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2007-08-31 07:58:36 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2007-08-31 07:58:36 (GMT)
commit3dc33d18452de871cff98914dda81ff00b4d00f6 (patch)
treedb6b1db8f12e688ecfa32e2d8908c20a5ce18037 /Modules
parent39cf04b7bb84122d263c6e3738cf67bccda72e63 (diff)
downloadcpython-3dc33d18452de871cff98914dda81ff00b4d00f6.zip
cpython-3dc33d18452de871cff98914dda81ff00b4d00f6.tar.gz
cpython-3dc33d18452de871cff98914dda81ff00b4d00f6.tar.bz2
Revert 57722. Move error dialog APIs to msvcrt instead,
add -n option to regrtest, and use it on the buildbot.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/main.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/Modules/main.c b/Modules/main.c
index e1e7b25..1d8099a 100644
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -328,25 +328,6 @@ Py_Main(int argc, char **argv)
(p = Py_GETENV("PYTHONUNBUFFERED")) && *p != '\0')
unbuffered = 1;
-#ifdef MS_WINDOWS
- if ((p = Py_GETENV("PYTHONNOERRORWINDOW")) && *p != '\0') {
- /* Disable all error windows created by the sytem
- or the CRT. */
-#if defined(_DEBUG) && defined(_MSC_VER)
- int types[] = {_CRT_WARN, _CRT_ERROR, _CRT_ASSERT};
- int i;
- for (i = 0; i < sizeof(types)/sizeof(types[0]); i++) {
- _CrtSetReportFile(types[i], _CRTDBG_FILE_STDERR);
- _CrtSetReportMode(types[i], _CRTDBG_MODE_FILE);
- }
- _set_error_mode(_OUT_TO_STDERR);
-#endif
- SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOALIGNMENTFAULTEXCEPT |
- SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX);
- }
-#endif
-
-
if (command == NULL && module == NULL && _PyOS_optind < argc &&
strcmp(argv[_PyOS_optind], "-") != 0)
{