comparison cmd2.py @ 269:8f68e68033d4

poutput etc.
author Catherine Devlin <catherine.devlin@gmail.com>
date Wed, 08 Apr 2009 18:26:58 -0400
parents 3333e61e7103
children 194160b7f091
comparison
equal deleted inserted replaced
268:f03c4f951ca6 269:8f68e68033d4
271 settable.sort() 271 settable.sort()
272 272
273 def poutput(self, msg): 273 def poutput(self, msg):
274 self.stdout.write(msg) 274 self.stdout.write(msg)
275 if msg[-1] != '\n': 275 if msg[-1] != '\n':
276 self.stdout('\n') 276 self.stdout.write('\n')
277 def perror(self, errmsg): 277 def perror(self, errmsg):
278 print str(errmsg) 278 print str(errmsg)
279 def pfeedback(self, msg): 279 def pfeedback(self, msg):
280 """For printing nonessential feedback. Can be silenced with `quiet`. 280 """For printing nonessential feedback. Can be silenced with `quiet`.
281 Inclusion in redirected output is controlled by `feedback_to_output`.""" 281 Inclusion in redirected output is controlled by `feedback_to_output`."""