You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
325 B
9 lines
325 B
2 years ago
|
def check_file(check_function, filename, string):
|
||
|
obj = check_function(filename, 'url')
|
||
|
result = []
|
||
|
result.append(obj.before())
|
||
|
for i, line in enumerate(string.splitlines(True)):
|
||
|
result.append(obj.check_line(i + 1, line))
|
||
|
result.append(obj.after())
|
||
|
return [r for r in result if r is not None]
|