summaryrefslogtreecommitdiffstats
path: root/Lib/dos-8x3/userlist.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/dos-8x3/userlist.py')
-rwxr-xr-xLib/dos-8x3/userlist.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/dos-8x3/userlist.py b/Lib/dos-8x3/userlist.py
index aab5119..e79faea 100755
--- a/Lib/dos-8x3/userlist.py
+++ b/Lib/dos-8x3/userlist.py
@@ -24,9 +24,7 @@ class UserList:
def __delitem__(self, i): del self.data[i]
def __getslice__(self, i, j):
i = max(i, 0); j = max(j, 0)
- userlist = self.__class__()
- userlist.data[:] = self.data[i:j]
- return userlist
+ return self.__class__(self.data[i:j])
def __setslice__(self, i, j, other):
i = max(i, 0); j = max(j, 0)
if isinstance(other, UserList):