From e4ac50260e7d3dd3c175741624721210a6c1d7f9 Mon Sep 17 00:00:00 2001 From: Hugo Date: Sat, 19 Oct 2019 19:58:20 +0300 Subject: __getslice__ is deprecated since Python 2.0 and it is not available in Python 3 https://docs.python.org/2/reference/datamodel.html#object.__getslice__ --- src/tablib/core.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/tablib') diff --git a/src/tablib/core.py b/src/tablib/core.py index 335927e..61c7a50 100644 --- a/src/tablib/core.py +++ b/src/tablib/core.py @@ -40,9 +40,6 @@ class Row: def __repr__(self): return repr(self._row) - def __getslice__(self, i, j): - return self._row[i:j] - def __getitem__(self, i): return self._row[i] -- cgit v1.2.1