Skip to content
Snippets Groups Projects
Commit af6e8a31 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

test

parent 9b327962
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,7 @@ class Range(object): ...@@ -38,7 +38,7 @@ class Range(object):
def __init__(self, *args): def __init__(self, *args):
if len(args) == 1: if len(args) == 1:
rs, = args rs, = args
args = self.__from_range(rs) if isinstance(rs, type(self)) else self.__from_str(rs) args = (self.__from_range if isinstance(rs, type(self)) else self.__from_str)(rs)
if args[2] and math.isinf(args[0]): if args[2] and math.isinf(args[0]):
raise ValueError('Greater or equal with infinity!') raise ValueError('Greater or equal with infinity!')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment