Skip to content

Commit

Permalink
Update pym/bob/input.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Klötzke <[email protected]>
  • Loading branch information
rhubert and jkloetzke authored Jun 2, 2024
1 parent fb0785a commit b02ac2e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pym/bob/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,10 @@ class CheckoutAssert:
schema.Optional('end') : schema.And(int, lambda n: n >= 1),
})

def __init__(self, spec, env=Env()):
spec = {k: ( env.substitute(v, "checkoutAssert::"+ k) if isinstance(v, str) else v)
for (k, v) in spec.items()}
def __init__(self, spec, env=None):
if env is not None:
spec = {k: ( env.substitute(v, "checkoutAssert::"+ k) if isinstance(v, str) else v)
for (k, v) in spec.items()}
self.__source = spec['__source']
self.__file = spec['file']
self.__digestSHA1 = spec['digestSHA1']
Expand Down

0 comments on commit b02ac2e

Please sign in to comment.