[Python-checkins] CVS: python/dist/src/Lib pstats.py,1.13,1.14

Eric S. Raymond esr@users.sourceforge.net
Fri, 13 Apr 2001 18:48:43 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv29418

Modified Files:
	pstats.py 
Log Message:
Import readline when possible to make the commaninterpreter UI nicer.



Index: pstats.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pstats.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** pstats.py	2001/04/13 05:37:27	1.13
--- pstats.py	2001/04/14 01:48:41	1.14
***************
*** 532,535 ****
--- 532,539 ----
  if __name__ == '__main__':
      import cmd
+     try:
+         import readline
+     except:
+         pass
  
      class ProfileBrowser(cmd.Cmd):