diff Python/import.c @ 15401:c45c5080c844 legacy-trunk

Rip out DOS-8x3 support.
author Guido van Rossum <guido@python.org>
date Mon, 13 Nov 2000 17:26:32 +0000
parents 5d41ca49a10a
children eb1767b068fe
line wrap: on
line diff
--- a/Python/import.c	Mon Nov 13 17:24:13 2000 +0000
+++ b/Python/import.c	Mon Nov 13 17:26:32 2000 +0000
@@ -957,23 +957,8 @@
 #endif
 		    )
 			buf[len++] = SEP;
-#ifdef IMPORT_8x3_NAMES
-		/* see if we are searching in directory dos-8x3 */
-		if (len > 7 && !strncmp(buf + len - 8, "dos-8x3", 7)){
-			int j;
-			char ch;  /* limit name to 8 lower-case characters */
-			for (j = 0; (ch = name[j]) && j < 8; j++)
-				if (isupper(ch))
-					buf[len++] = tolower(ch);
-				else
-					buf[len++] = ch;
-		}
-		else /* Not in dos-8x3, use the full name */
-#endif
-		{
-			strcpy(buf+len, name);
-			len += namelen;
-		}
+		strcpy(buf+len, name);
+		len += namelen;
 #ifdef HAVE_STAT
 		if (stat(buf, &statbuf) == 0) {
 			if (S_ISDIR(statbuf.st_mode)) {