mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Merging appropriate 2.1.1 fixes back into the main trunk.
This commit is contained in:
parent
cb60dae6a1
commit
cbed91b4db
26 changed files with 162 additions and 122 deletions
|
@ -486,6 +486,11 @@ PyMac_InitApplication()
|
|||
PyMac_FixGUSIcd();
|
||||
#endif
|
||||
}
|
||||
/* Check that the first argument is a text file */
|
||||
if ( PyMac_getfiletype(argv[1]) != 'TEXT' ) {
|
||||
Alert(NOTASCRIPT_ID, NULL);
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
Py_Main(argc, argv);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue