summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-11-13 17:26:32 (GMT)
committerGuido van Rossum <guido@python.org>2000-11-13 17:26:32 (GMT)
commit215c340aa30b72a3dd4f078520b61a05a0e663f3 (patch)
treeca99f2b6e397f6c97a13501d0e6c562eaf2a81ca /Python/import.c
parent1bb7734c7ed916e5631d0b2a822e4b8f5296cab0 (diff)
downloadcpython-215c340aa30b72a3dd4f078520b61a05a0e663f3.zip
cpython-215c340aa30b72a3dd4f078520b61a05a0e663f3.tar.gz
cpython-215c340aa30b72a3dd4f078520b61a05a0e663f3.tar.bz2
Rip out DOS-8x3 support.
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/Python/import.c b/Python/import.c
index 8d06a53..e3a70c7 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -957,23 +957,8 @@ find_module(char *realname, PyObject *path, char *buf, size_t buflen,
#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)) {