Let library modules use the new keyword arguments for list.sort().

This commit is contained in:
Raymond Hettinger 2003-10-16 05:53:16 +00:00
parent 42b1ba31af
commit 6b59f5f3fd
7 changed files with 18 additions and 24 deletions

View file

@ -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)