Fix for stalling in retrieving international letters (--technique=B)

This commit is contained in:
Miroslav Stampar 2013-02-05 10:27:31 +01:00
parent fd9e1cd2c5
commit 4faa5f0f49

View File

@ -54,6 +54,9 @@ class xrange(object):
def _len(self):
return max(0, int((self.stop - self.start) / self.step))
def __contains__(self, value):
return (self.start <= value < self.stop) and (value - self.start) % self.step == 0
def __getitem__(self, index):
if isinstance(index, slice):
start, stop, step = index.indices(self._len())