diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2001-07-30 10:21:13 +0000 |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2001-07-30 10:21:13 +0000 |
| commit | 27c430e54e624fa1ad943077b9001c280f91761f (patch) | |
| tree | ba9b8d38bcc4030c24ea83577cd04351fedfc526 /Lib/pstats.py | |
| parent | a1fd0505aff09b31bbfb1ca8d1b1a9ba5778ba34 (diff) | |
| download | cpython-git-27c430e54e624fa1ad943077b9001c280f91761f.tar.gz | |
Patch #445538: add completion for pstats.py sort cmd.
Diffstat (limited to 'Lib/pstats.py')
| -rw-r--r-- | Lib/pstats.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/pstats.py b/Lib/pstats.py index 20a6cd1e14..4fd55c85ea 100644 --- a/Lib/pstats.py +++ b/Lib/pstats.py @@ -640,6 +640,8 @@ if __name__ == '__main__': def help_sort(self): 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): return self.generic('print_stats', line) |
