Skip to content

Commit

Permalink
Use builtin format function instead of super().__format__
Browse files Browse the repository at this point in the history
  • Loading branch information
nocarryr committed Nov 13, 2021
1 parent 555fd4e commit 0409188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vidhubcontrol/common.py
Expand Up @@ -55,7 +55,7 @@ def __str__(self):
def __format__(self, format_spec):
if format_spec == '':
return str(self)
return super().__format__(format_spec)
return format(self.value, format_spec)

def __iter__(self):
for member in ConnectionState:
Expand Down

0 comments on commit 0409188

Please sign in to comment.