Skip to content
Snippets Groups Projects
Commit db4c0a8e authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

Util: star_is_none

parent b1c87606
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !92. Comments created here will be created in the context of that merge request.
......@@ -268,3 +268,7 @@ def parse_int_list(a: str, maxim: int = 200) -> List[int]:
raise mo.CheckError("Větší číslo nemůže být před menším")
r += [c[0]] if len(c) == 1 else range(c[0], c[1] + 1)
return r
def star_is_none(x):
return None if x == "*" else x
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment