From: Ben Darnell Date: Thu, 26 Aug 2010 18:52:41 +0000 (-0700) Subject: Fix reference to slice.indices. X-Git-Tag: v1.1.0~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4c5aba7c2d00f929a1d1d16577aa5e2b6fc5d72;p=thirdparty%2Ftornado.git Fix reference to slice.indices. Is this used anywhere? Closes: #13. --- diff --git a/tornado/template.py b/tornado/template.py index e0311b9d8..bea95bb66 100644 --- a/tornado/template.py +++ b/tornado/template.py @@ -428,7 +428,7 @@ class _TemplateReader(object): def __getitem__(self, key): if type(key) is slice: size = len(self) - start, stop, step = slice.indices(size) + start, stop, step = key.indices(size) if start is None: start = self.pos else: start += self.pos if stop is not None: stop += self.pos