mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00

svn+ssh://pythondev@svn.python.org/python/trunk ........ r78779 | benjamin.peterson | 2010-03-07 20:11:06 -0600 (Sun, 07 Mar 2010) | 1 line remove svn:executable from scripts without a shebang line ........
24 lines
467 B
Python
24 lines
467 B
Python
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()
|