refactor: upgrade code to >=python3.7 (pre-commit)
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2189>
This commit is contained in:
parent
7768ea77a4
commit
8d9946d35a
143 changed files with 454 additions and 582 deletions
|
|
@ -362,14 +362,14 @@ class NS:
|
|||
def __getattr__(self, key):
|
||||
if key not in self.conf["document"]["@context"]:
|
||||
raise AttributeError(
|
||||
"{} is not a valid property of context {}".format(key, self.baseUrl)
|
||||
f"{key} is not a valid property of context {self.baseUrl}"
|
||||
)
|
||||
return self.baseUrl + key
|
||||
|
||||
|
||||
class NoopContext:
|
||||
def __getattr__(self, key):
|
||||
return "_:{}".format(key)
|
||||
return f"_:{key}"
|
||||
|
||||
|
||||
NOOP = NoopContext()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue