more fault tolerance
This commit is contained in:
@ -242,10 +242,11 @@ def get_examples_using_styles(regex, examples='examples'):
|
|||||||
for filename in Path(examples).rglob('in.*'):
|
for filename in Path(examples).rglob('in.*'):
|
||||||
with open(filename) as f:
|
with open(filename) as f:
|
||||||
for line in f:
|
for line in f:
|
||||||
matches = regex.match(line)
|
if line:
|
||||||
if matches:
|
matches = regex.match(line)
|
||||||
inputs.append(filename)
|
if matches:
|
||||||
break
|
inputs.append(filename)
|
||||||
|
break
|
||||||
return inputs
|
return inputs
|
||||||
|
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user