Skip to content
This repository has been archived by the owner on Jul 1, 2020. It is now read-only.

Commit

Permalink
remove some extra parens
Browse files Browse the repository at this point in the history
  • Loading branch information
trehn committed Jan 3, 2019
1 parent 1ed5cb0 commit 397121d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
4 changes: 2 additions & 2 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def fail(msg):
or plugin == "__pycache__"
):
continue
print(("{plugin}: checking...".format(plugin=plugin)))
print("{plugin}: checking...".format(plugin=plugin))

# read plugin manifest
with open(join(BASE_PATH, plugin, "manifest.json")) as f:
Expand Down Expand Up @@ -64,6 +64,6 @@ def fail(msg):
if not isfile(join(BASE_PATH, plugin, "LICENSE")):
fail("{plugin}: missing LICENSE".format(plugin=plugin))

print(("{plugin}: OK".format(plugin=plugin)))
print("{plugin}: OK".format(plugin=plugin))

print("Everything seems to be in order.")
16 changes: 6 additions & 10 deletions update_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,13 @@ def hash_directory(path):
)

if new_index[plugin]["version"] > old_index[plugin]["version"]:
print(
(
"{plugin}: version {oldversion} -> {newversion}".format(
newversion=new_index[plugin]["version"],
plugin=plugin,
oldversion=old_index[plugin]["version"],
)
)
)
print("{plugin}: version {oldversion} -> {newversion}".format(
newversion=new_index[plugin]["version"],
plugin=plugin,
oldversion=old_index[plugin]["version"],
))
else:
print(("{plugin}: added".format(plugin=plugin)))
print("{plugin}: added".format(plugin=plugin))

with open(join(BASE_PATH, "index.json"), "w") as f:
f.write(dumps(new_index, indent=4, sort_keys=True) + "\n")

0 comments on commit 397121d

Please sign in to comment.