Replaced str.format() method in core functionality (#1819)

* Replaced str.format() method in core functionality

* Fixed linter checks
This commit is contained in:
Mykhailo Yusko
2020-04-06 22:45:25 +03:00
committed by GitHub
parent 78e912ea45
commit 9a39aff803
13 changed files with 74 additions and 96 deletions

View File

@@ -51,7 +51,7 @@ class Config(dict):
try:
return self[attr]
except KeyError as ke:
raise AttributeError("Config has no '{}'".format(ke.args[0]))
raise AttributeError(f"Config has no '{ke.args[0]}'")
def __setattr__(self, attr, value):
self[attr] = value