summaryrefslogtreecommitdiffstats
path: root/Mac/Python
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-12-13 13:57:35 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-12-13 13:57:35 (GMT)
commit55309a31df89d83c996426413915c1717b367a8d (patch)
tree48d71b793912c43a8b0ad611c217ae49af4603db /Mac/Python
parent8bf053feade9c854a6c351d1d892c3cf78413f36 (diff)
downloadcpython-55309a31df89d83c996426413915c1717b367a8d.zip
cpython-55309a31df89d83c996426413915c1717b367a8d.tar.gz
cpython-55309a31df89d83c996426413915c1717b367a8d.tar.bz2
Get rid of 2.2 "poor mans universal newlines" now that the real thing
is implemented.
Diffstat (limited to 'Mac/Python')
-rw-r--r--Mac/Python/macmain.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/Mac/Python/macmain.c b/Mac/Python/macmain.c
index 1af38eb..d3ce701 100644
--- a/Mac/Python/macmain.c
+++ b/Mac/Python/macmain.c
@@ -635,22 +635,3 @@ PyMac_GetDelayConsoleFlag(void)
return (int)PyMac_options.delayconsole;
}
-#ifndef WITHOUT_UNIX_NEWLINES
-/*
-** Experimental feature (for 2.2a2): optionally allow unix newlines
-** as well as Mac newlines on input. We replace a lowlevel
-** MSL routine to accomplish this.
-*/
-void
-__convert_to_newlines(unsigned char * buf, size_t * n_ptr)
-{
- unsigned char *p;
- size_t n = *n_ptr;
-
- for(p=buf; n > 0; p++, n--)
- if ( *p == '\r' ) *p = '\n';
- else if ( *p == '\n' && !PyMac_options.unixnewlines )
- *p = '\r';
-}
-#endif /* WITHOUT_UNIX_NEWLINES */
-