mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Updates for THINK C 6.0. Moved the necessary UNIX emulation routines here.
This commit is contained in:
parent
e89bc75048
commit
d4d7728440
16 changed files with 618 additions and 51 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue