summaryrefslogtreecommitdiff
path: root/Parser/tokenizer.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-11-20 01:44:59 +0000
committerJack Jansen <jack.jansen@cwi.nl>2003-11-20 01:44:59 +0000
commit89658fe93e349fc99942b681e41934acce491b9f (patch)
tree669bca9ab3454c0a4f2cb5668fb0c10dc87efc16 /Parser/tokenizer.c
parentd928e0fc503219f9f399bc131bac92527fa145ca (diff)
downloadcpython-89658fe93e349fc99942b681e41934acce491b9f.tar.gz
Getting rid of all the code inside #ifdef macintosh too.
Diffstat (limited to 'Parser/tokenizer.c')
-rw-r--r--Parser/tokenizer.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c
index a97720c54c..0821bda3d7 100644
--- a/Parser/tokenizer.c
+++ b/Parser/tokenizer.c
@@ -784,7 +784,6 @@ tok_nextc(register struct tok_state *tok)
done = tok->inp[-1] == '\n';
}
tok->cur = tok->buf + cur;
-#ifndef macintosh
/* replace "\r\n" with "\n" */
/* For Mac we leave the \r, giving a syntax error */
pt = tok->inp - 2;
@@ -793,7 +792,6 @@ tok_nextc(register struct tok_state *tok)
*pt = '\0';
tok->inp = pt;
}
-#endif
}
if (tok->done != E_OK) {
if (tok->prompt != NULL)
@@ -1185,15 +1183,6 @@ tok_get(register struct tok_state *tok, char **p_start, char **p_end)
return NEWLINE;
}
-#ifdef macintosh
- if (c == '\r') {
- PySys_WriteStderr(
- "File contains \\r characters (incorrect line endings?)\n");
- tok->done = E_TOKEN;
- tok->cur = tok->inp;
- return ERRORTOKEN;
- }
-#endif
/* Period or number starting with period? */
if (c == '.') {
c = tok_nextc(tok);