diff options
author | Raymond Hettinger <python@rcn.com> | 2003-10-16 05:53:16 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-10-16 05:53:16 (GMT) |
commit | 6b59f5f3fd9bdf00875a7cead15f423fa1c2f910 (patch) | |
tree | 1bd1e055f31e154230ffd962a294d37cf678c87a /Lib/UserList.py | |
parent | 42b1ba31aff86af6257a0fca455d5569bce9d8fc (diff) | |
download | cpython-6b59f5f3fd9bdf00875a7cead15f423fa1c2f910.zip cpython-6b59f5f3fd9bdf00875a7cead15f423fa1c2f910.tar.gz cpython-6b59f5f3fd9bdf00875a7cead15f423fa1c2f910.tar.bz2 |
Let library modules use the new keyword arguments for list.sort().
Diffstat (limited to 'Lib/UserList.py')
-rw-r--r-- | Lib/UserList.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/UserList.py b/Lib/UserList.py index dd1b927..072f6a7 100644 --- a/Lib/UserList.py +++ b/Lib/UserList.py @@ -77,7 +77,7 @@ class UserList: def count(self, item): return self.data.count(item) def index(self, item, *args): return self.data.index(item, *args) def reverse(self): self.data.reverse() - def sort(self, *args): self.data.sort(*args) + def sort(self, *args, **kwds): self.data.sort(*args, **kwds) def extend(self, other): if isinstance(other, UserList): self.data.extend(other.data) |