1 2 import pexpect 3 4 def update(): 5 child = pexpect.spawn('cvs update -dP') 6 7 for line in child: 8 if not line.startswith('?') and not line.startswith('cvs update'): 9 print line[:-1]
You need to create an account or log in to post comments to this site.