mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Run pyupgrade
against changed files in merge-forward
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
e7b5f24ab3
commit
baa119fa01
1 changed files with 2 additions and 4 deletions
|
@ -74,9 +74,7 @@ except (ImportError, AttributeError):
|
|||
"""
|
||||
super().__init__()
|
||||
if len(args) > 1:
|
||||
raise TypeError(
|
||||
"expected at most 1 arguments, got {}".format(len(args))
|
||||
)
|
||||
raise TypeError(f"expected at most 1 arguments, got {len(args)}")
|
||||
try:
|
||||
self.__root
|
||||
except AttributeError:
|
||||
|
@ -250,7 +248,7 @@ except (ImportError, AttributeError):
|
|||
_repr_running[call_key] = 1
|
||||
try:
|
||||
if not self:
|
||||
return "{}()".format(self.__class__.__name__)
|
||||
return f"{self.__class__.__name__}()"
|
||||
return "{}('{}')".format(
|
||||
self.__class__.__name__, list(self.items())
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue