Commit d54e699c authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

#4440: modernize a use of filter(), making it compatible with 3.x

parent d44b2fc8
......@@ -649,7 +649,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 >> self.stream, "Valid sort keys (unique prefixes are accepted):"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment