Updates for THINK C 6.0. Moved the necessary UNIX emulation routines here.

This commit is contained in:
Guido van Rossum 1994-08-19 10:51:31 +00:00
parent e89bc75048
commit d4d7728440
16 changed files with 618 additions and 51 deletions

View file

@ -1,5 +1,9 @@
#! /usr/local/bin/python
# Replace \r by \n -- useful after transferring files from the Mac...
# Run this on UNIX.
# Usage: crlf.py file ...
import sys
import os
import string
@ -7,8 +11,8 @@ import string
def main():
args = sys.argv[1:]
if not args:
print 'no files'
sys.exit(1)
print 'usage:', sys.argv[0], 'file ...'
sys.exit(2)
for file in args:
print file, '...'
data = open(file, 'r').read()