A teensy optimization.

This commit is contained in:
adustman
2000-04-08 03:07:57 +00:00
parent 3bc2e7a9d3
commit 7bb113c6eb

View File

@ -283,7 +283,7 @@ class CursorStoreResultMixIn:
def fetchall(self):
"""Fetchs all available rows from the cursor."""
result = self.__rows[self.__pos:]
result = self.__pos and self.__rows[self.__pos:] or self.__rows
self.__pos = len(self.__rows)
return result