Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 3738:ce74bba8a6a6 legacy-trunk
Slightly different Windows ifdefs
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 28 Jun 1996 20:15:15 +0000 |
| parents | 67390c1daebe |
| children | d1ae0ea9a585 |
line wrap: on
line diff
--- a/Python/import.c Fri Jun 28 20:13:08 1996 +0000 +++ b/Python/import.c Fri Jun 28 20:15:15 1996 +0000 @@ -415,7 +415,7 @@ struct filedescr *fdp; FILE *fp = NULL; -#ifdef NT +#ifdef PYTHONWIN if ((fp=PyWin_FindRegisteredModule(name, &fdp, buf, buflen))!=NULL) { *p_fp = fp; return fdp; @@ -463,12 +463,11 @@ buf[len++] = ch; } else /* Not in dos_8x3, use the full name */ -#else +#endif { strcpy(buf+len, name); len += namelen; } -#endif for (fdp = import_filetab; fdp->suffix != NULL; fdp++) { strcpy(buf+len, fdp->suffix); if (verbose > 1)
