[rework] Replace old-style string formatting with new-style
This commit is contained in:
parent
60f63f3269
commit
8538f272d6
4 changed files with 6 additions and 6 deletions
|
@ -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", {})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue