repo.or.cz
/
python.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Issue #7205: Fix a possible deadlock when using a BZ2File object from several threads...
[python.git]
/
Demo
/
pdist
/
mac.py
blob
107113c18a895370af70233664fcc51593df90d0
1
import
sys
2
import
string
3
import
rcvs
4
5
def
main
():
6
while
1
:
7
try
:
8
line
=
raw_input
(
'$ '
)
9
except
EOFError
:
10
break
11
words
=
string
.
split
(
line
)
12
if not
words
:
13
continue
14
if
words
[
0
] !=
'rcvs'
:
15
words
.
insert
(
0
,
'rcvs'
)
16
sys
.
argv
=
words
17
rcvs
.
main
()
18
19
main
()