1
0
Fork 0
mirror of https://github.com/matomo-org/matomo-icons.git synced 2024-09-19 17:03:45 +02:00

fix style

This commit is contained in:
Lukas Winkler 2017-05-08 18:19:55 +02:00
parent 2aa5462215
commit e3ce57d3bb

View file

@ -47,7 +47,7 @@ def test_if_source_for_images():
for filetype in ["svg", "png", "gif", "jpg", "ico"]: for filetype in ["svg", "png", "gif", "jpg", "ico"]:
for source_file in glob("src/{type}/*.{filetype}".format(type=icontype, filetype=filetype)): for source_file in glob("src/{type}/*.{filetype}".format(type=icontype, filetype=filetype)):
if not os.path.islink(source_file): if not os.path.islink(source_file):
if not os.path.isfile(source_file + ".source") and not "UNK" in source_file: if not os.path.isfile(source_file + ".source") and "UNK" not in source_file:
print("Source is missing for {file}".format(file=source_file)) print("Source is missing for {file}".format(file=source_file))
error = True error = True
@ -57,8 +57,7 @@ def test_if_all_symlinks_are_valid():
for file in glob("src/**/*"): for file in glob("src/**/*"):
if os.path.islink(file) and not os.path.exists(file): if os.path.islink(file) and not os.path.exists(file):
print( print(
"Symlink doesn't link to file (from {link} to {target}" "Symlink doesn't link to file (from {link} to {target}".format(link=file, target=os.readlink(file))
.format(link=file, target=os.readlink(file))
) )
error = True error = True