[rework] Replace old-style string formatting with new-style

This commit is contained in:
Tobias Witek 2016-10-31 07:46:21 +01:00
parent 60f63f3269
commit 8538f272d6
4 changed files with 6 additions and 6 deletions

View file

@ -5,7 +5,7 @@ class Theme:
def __init__(self, name="default"):
self._data = None
path = os.path.dirname(os.path.realpath(__file__))
with open("%s/themes/%s.json" % (path, name)) as f:
with open("{}/themes/{}.json".format(path, name)) as f:
self._data = json.load(f)
self._defaults = self._data.get("defaults", {})