parent
f689b777b4
commit
2566747061
|
@ -105,7 +105,7 @@ class Case(ast.Switch):
|
||||||
or (isinstance(choice, str) and choice == "default")
|
or (isinstance(choice, str) and choice == "default")
|
||||||
or choice > key):
|
or choice > key):
|
||||||
key = choice
|
key = choice
|
||||||
if isinstance(key, str) and key == "default":
|
elif isinstance(key, str) and key == "default":
|
||||||
key = "-" * len(self.test)
|
key = "-" * len(self.test)
|
||||||
else:
|
else:
|
||||||
key = "{:0{}b}".format(wrap(key).value, len(self.test))
|
key = "{:0{}b}".format(wrap(key).value, len(self.test))
|
||||||
|
|
Loading…
Reference in a new issue