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

Skip to content

Commit 1e1f560

Browse files
committed
Minor cosmetics
1 parent 0c2474c commit 1e1f560

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/utils/xrange.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class xrange(object):
1414
__slots__ = ['_slice']
1515

1616
def __init__(self, *args):
17-
if args and isinstance(args[0], xrange):
17+
if args and isinstance(args[0], type(self)):
1818
self._slice = slice(args[0].start, args[0].stop, args[0].step)
1919
else:
2020
self._slice = slice(*args)

0 commit comments

Comments
 (0)