Commits

Chris Perl committed 6c8e6e8

Changing some things to use display_obj.write

  • Participants
  • Parent commits 123b9b7

Comments (0)

Files changed (1)

                 self.do_cmd(line)
 
             except EOFError, e:
-                print ""
+                display_obj.write('\n')
                 break
 
             except KeyboardInterrupt, e:
-                print ""
+                display_obj.write('\n')
                 continue
 
             except OptParseError, e:
-                print e
+                display_obj.write(str(e))
 
             except StandardError, e:
-                traceback.print_exc()
+                display_obj.write(traceback.format_exc())
                 continue
 
     def do_cmd(self, line):