diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2010-04-02 17:02:57 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2010-04-02 17:02:57 (GMT) |
commit | 0a62823d81c0ee827c66d8767754e571dfee8693 (patch) | |
tree | 05c2f4d7bac1deb0334a1817d24cb319dca32e43 /Lib | |
parent | 967985989031ecfa1dab7dd4dc757d6d33c47157 (diff) | |
download | cpython-0a62823d81c0ee827c66d8767754e571dfee8693.zip cpython-0a62823d81c0ee827c66d8767754e571dfee8693.tar.gz cpython-0a62823d81c0ee827c66d8767754e571dfee8693.tar.bz2 |
Merged revisions 79603 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79603 | andrew.kuchling | 2010-04-02 12:59:16 -0400 (Fri, 02 Apr 2010) | 1 line
#4440: modernize a use of filter(), making it compatible with 3.x
........
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/pstats.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pstats.py b/Lib/pstats.py index fe7f225..e2fee37 100644 --- a/Lib/pstats.py +++ b/Lib/pstats.py @@ -636,7 +636,7 @@ if __name__ == '__main__': def do_sort(self, line): abbrevs = self.stats.get_sort_arg_defs() - if line and not filter(lambda x,a=abbrevs: x not in a,line.split()): + if line and all((x in abbrevs) for x in line.split()): self.stats.sort_stats(*line.split()) else: print("Valid sort keys (unique prefixes are accepted):", file=self.stream) |