commit | 68468eba635570400f607e140425a222018e56f9 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu Feb 27 20:14:51 2003 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu Feb 27 20:14:51 2003 +0000 |
tree | 2176c8822392383a88caa0a2209a1d2f3446d45c | |
parent | f389c7727362321a91dbaff13b7e1cef6cbaa3d8 [diff] [blame] |
Get rid of many apply() calls.
diff --git a/Lib/UserList.py b/Lib/UserList.py index 69f683e..76cf31f 100644 --- a/Lib/UserList.py +++ b/Lib/UserList.py
@@ -77,7 +77,7 @@ def count(self, item): return self.data.count(item) def index(self, item): return self.data.index(item) def reverse(self): self.data.reverse() - def sort(self, *args): apply(self.data.sort, args) + def sort(self, *args): self.data.sort(*args) def extend(self, other): if isinstance(other, UserList): self.data.extend(other.data)