diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-17 06:49:51 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-17 06:49:51 (GMT) |
commit | ce96f69d69a6020c780145c89a17a8391b63624b (patch) | |
tree | 7325a9bfaddf191e49910532df1fa4210c335196 /Demo/pdist/rcvs.py | |
parent | 9e2b9665ae9f94a07da54156c48e2cd411a23746 (diff) | |
download | cpython-ce96f69d69a6020c780145c89a17a8391b63624b.zip cpython-ce96f69d69a6020c780145c89a17a8391b63624b.tar.gz cpython-ce96f69d69a6020c780145c89a17a8391b63624b.tar.bz2 |
Get rid of a bunch more raw_input references
Diffstat (limited to 'Demo/pdist/rcvs.py')
-rwxr-xr-x | Demo/pdist/rcvs.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Demo/pdist/rcvs.py b/Demo/pdist/rcvs.py index 8b8bae6..ab1fd87 100755 --- a/Demo/pdist/rcvs.py +++ b/Demo/pdist/rcvs.py @@ -35,7 +35,6 @@ from cvslib import CVS, File import md5 import os -import string import sys from cmdfw import CommandFrameWork @@ -269,13 +268,13 @@ class RCVS(CVS): def mailinfo(self, files, message = ""): towhom = "sjoerd@cwi.nl, jack@cwi.nl" # XXX - mailtext = MAILFORM % (towhom, string.join(files), - string.join(files), message) + mailtext = MAILFORM % (towhom, ' '.join(files), + ' '.join(files), message) print '-'*70 print mailtext print '-'*70 ok = raw_input("OK to mail to %s? " % towhom) - if string.lower(string.strip(ok)) in ('y', 'ye', 'yes'): + if ok.lower().strip() in ('y', 'ye', 'yes'): p = os.popen(SENDMAIL, "w") p.write(mailtext) sts = p.close() |