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

Martin v. L?wis loewis@users.sourceforge.net
Mon, 30 Jul 2001 03:21:15 -0700


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

Modified Files:
	pstats.py 
Log Message:
Patch #445538: add completion for pstats.py sort cmd.


Index: pstats.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pstats.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** pstats.py	2001/07/28 14:44:03	1.19
--- pstats.py	2001/07/30 10:21:13	1.20
***************
*** 641,644 ****
--- 641,646 ----
              print "Sort profile data according to specified keys."
              print "(Typing `sort' without arguments lists valid keys.)"
+         def complete_sort(self, text, *args):
+             return [a for a in Stats.sort_arg_dict_default.keys() if a.startswith(text)]
  
          def do_stats(self, line):