Changeset 2908
- Timestamp:
- 12/30/07 15:07:46 (1 year ago)
- Files:
-
- ipython/trunk/IPython/CrashHandler.py (modified) (1 diff)
- ipython/trunk/IPython/iplib.py (modified) (3 diffs)
- ipython/trunk/IPython/ultraTB.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
ipython/trunk/IPython/CrashHandler.py
r1828 r2908 155 155 report.write(self.make_report(traceback)) 156 156 report.close() 157 raw_input("Press enter to exit:") 157 158 158 159 def make_report(self,traceback): ipython/trunk/IPython/iplib.py
r2899 r2908 219 219 if ns is not None and type(ns) != types.DictType: 220 220 raise TypeError,'namespace must be a dictionary' 221 222 221 # Job manager (for jobs run as background threads) 223 222 self.jobs = BackgroundJobManager() … … 1552 1551 banner = self.BANNER+self.banner2 1553 1552 1554 self.interact(banner) 1553 while 1: 1554 try: 1555 self.interact(banner) 1556 except KeyboardInterrupt: 1557 # this should not be necessary, but KeyboardInterrupt 1558 # handling seems rather unpredictable... 1559 self.write("\nKeyboardInterrupt in interact()\n") 1555 1560 1556 1561 def exec_init_cmd(self): … … 1683 1688 1684 1689 except KeyboardInterrupt: 1685 self.write('\nKeyboardInterrupt\n') 1686 self.resetbuffer() 1687 # keep cache in sync with the prompt counter: 1688 self.outputcache.prompt_count -= 1 1689 1690 if self.autoindent: 1691 self.indent_current_nsp = 0 1692 more = 0 1690 #double-guard against keyboardinterrupts during kbdint handling 1691 try: 1692 self.write('\nKeyboardInterrupt\n') 1693 self.resetbuffer() 1694 # keep cache in sync with the prompt counter: 1695 self.outputcache.prompt_count -= 1 1696 1697 if self.autoindent: 1698 self.indent_current_nsp = 0 1699 more = 0 1700 except KeyboardInterrupt: 1701 pass 1693 1702 except EOFError: 1694 1703 if self.autoindent: ipython/trunk/IPython/ultraTB.py
r2907 r2908 870 870 self.debugger() 871 871 except KeyboardInterrupt: 872 print " KeyboardInterrupt"872 print "\nKeyboardInterrupt" 873 873 874 874 #---------------------------------------------------------------------------- … … 988 988 self.debugger() 989 989 except KeyboardInterrupt: 990 print " KeyboardInterrupt"990 print "\nKeyboardInterrupt" 991 991 992 992 def text(self,etype=None,value=None,tb=None,context=5,mode=None):
