Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4faa5f0

Browse files
committed
Fix for stalling in retrieving international letters (--technique=B)
1 parent fd9e1cd commit 4faa5f0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/utils/xrange.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ def __len__(self):
5454
def _len(self):
5555
return max(0, int((self.stop - self.start) / self.step))
5656

57+
def __contains__(self, value):
58+
return (self.start <= value < self.stop) and (value - self.start) % self.step == 0
59+
5760
def __getitem__(self, index):
5861
if isinstance(index, slice):
5962
start, stop, step = index.indices(self._len())

0 commit comments

Comments
 (0)