Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 4ca04b67f00edabe86072446f059adcb70eafcdd authored by Barry Warsaw on 12 February 2009, 23:46:00 UTC
More copyright and version number updates.
Tip revision: 4ca04b6
mac.py
import sys
import rcvs

def raw_input(prompt):
    sys.stdout.write(prompt)
    sys.stdout.flush()
    return sys.stdin.readline()

def main():
    while 1:
        try:
            line = input('$ ')
        except EOFError:
            break
        words = line.split()
        if not words:
            continue
        if words[0] != 'rcvs':
            words.insert(0, 'rcvs')
        sys.argv = words
        rcvs.main()

if __name__ == '__main__':
    main()
back to top