Mercurial > cpython-lru_cache-weakref
diff Python/importdl.c @ 2420:6beef17871f9 legacy-trunk
change ifdefs and fix "%#s" format
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 21 Feb 1995 21:02:46 +0000 |
| parents | 397478bca0c4 |
| children | 1e8aebab874a |
line wrap: on
line diff
--- a/Python/importdl.c Tue Feb 21 21:01:47 1995 +0000 +++ b/Python/importdl.c Tue Feb 21 21:02:46 1995 +0000 @@ -145,7 +145,7 @@ #ifdef USE_MAC_SHARED_LIBRARY #include <CodeFragments.h> -#ifdef __SC__ /* Really just an older version of Universal Headers */ +#ifdef __CFM68K__ /* Really just an older version of Universal Headers */ #define CFragConnectionID ConnectionID #define kLoadCFrag 0x01 #endif @@ -228,7 +228,7 @@ if ( err ) { char buf[512]; - sprintf(buf, "%#s: %s", errMessage, PyMac_StrError(err)); + sprintf(buf, "%.*s: %s", errMessage[0], errMessage+1, PyMac_StrError(err)); err_setstr(ImportError, buf); return NULL; }
