Skip to content

Commit

Permalink
pylxd/models: use more f-strings
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Jan 16, 2024
1 parent e32ba48 commit e81af1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pylxd/models/_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ def __init__(self, client, **kwargs):
if env == "none":
continue
warnings.warn(
'Attempted to set unknown attribute "{}" '
'on instance of "{}"'.format(key, self.__class__.__name__)
f'Attempted to set unknown attribute "{key}" '
f'on instance of "{self.__class__.__name__}"'
)
self.__dirty__.clear()

Expand Down
4 changes: 2 additions & 2 deletions pylxd/models/operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def __init__(self, **kwargs):
if env == "none":
continue
warnings.warn(
'Attempted to set unknown attribute "{}" '
'on instance of "{}"'.format(key, self.__class__.__name__)
f'Attempted to set unknown attribute "{key}" '
f'on instance of "{self.__class__.__name__}"'
)
pass

Expand Down

0 comments on commit e81af1a

Please sign in to comment.