mirror of
https://github.com/python/cpython.git
synced 2024-11-27 03:45:08 +08:00
Don't promise mac-japanese encoding as we don't have a codec for it.
Return a reasonable name for the general macos exception (MacOS.Error).
This commit is contained in:
parent
31569561fd
commit
f428aef3b2
@ -221,8 +221,11 @@ char *PyMac_getscript()
|
||||
else
|
||||
return "mac-roman";
|
||||
break;
|
||||
#if 0
|
||||
/* We don't have a codec for this, so don't return it */
|
||||
case smJapanese:
|
||||
return "mac-japan";
|
||||
#endif
|
||||
case smGreek:
|
||||
return "mac-greek";
|
||||
case smCyrillic:
|
||||
@ -467,7 +470,7 @@ PyObject *
|
||||
PyMac_GetOSErrException()
|
||||
{
|
||||
if (PyMac_OSErrException == NULL)
|
||||
PyMac_OSErrException = PyString_FromString("Mac OS Error");
|
||||
PyMac_OSErrException = PyString_FromString("MacOS.Error");
|
||||
return PyMac_OSErrException;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user