summaryrefslogtreecommitdiff
path: root/Parser/myreadline.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-11-19 15:24:47 +0000
committerJack Jansen <jack.jansen@cwi.nl>2003-11-19 15:24:47 +0000
commitfb2765666f23434061e5def1aa8392797edf1f43 (patch)
treede935c5b77d6b50ad326dd41c94294ebd00e9cfa /Parser/myreadline.c
parent61963220666a79d5c1811991a31261a5d993bcdb (diff)
downloadcpython-git-fb2765666f23434061e5def1aa8392797edf1f43.tar.gz
Getting rid of support for the ancient Apple MPW compiler.
Diffstat (limited to 'Parser/myreadline.c')
-rw-r--r--Parser/myreadline.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/Parser/myreadline.c b/Parser/myreadline.c
index fcc4667d7f..fd2b4f4c33 100644
--- a/Parser/myreadline.c
+++ b/Parser/myreadline.c
@@ -123,13 +123,6 @@ PyOS_StdioReadline(FILE *sys_stdin, FILE *sys_stdout, char *prompt)
*p = '\0';
break;
}
-#ifdef MPW
- /* Hack for MPW C where the prompt comes right back in the input */
- /* XXX (Actually this would be rather nice on most systems...) */
- n = strlen(prompt);
- if (strncmp(p, prompt, n) == 0)
- memmove(p, p + n, strlen(p) - n + 1);
-#endif
n = strlen(p);
while (n > 0 && p[n-1] != '\n') {
size_t incr = n+2;