Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c2474c commit 1e1f560Copy full SHA for 1e1f560
1 file changed
lib/utils/xrange.py
@@ -14,7 +14,7 @@ class xrange(object):
14
__slots__ = ['_slice']
15
16
def __init__(self, *args):
17
- if args and isinstance(args[0], xrange):
+ if args and isinstance(args[0], type(self)):
18
self._slice = slice(args[0].start, args[0].stop, args[0].step)
19
else:
20
self._slice = slice(*args)
0 commit comments