Skip to content

Commit

Permalink
In bstr.py, from % placeholders to f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
junkmd committed Aug 13, 2024
1 parent fe36e51 commit cabab42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comtypes/_post_coinit/bstr.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class BSTR(_SimpleCData):
_needsfree = False

def __repr__(self) -> str:
return "%s(%r)" % (self.__class__.__name__, self.value)
return f"{self.__class__.__name__}({self.value!r})"

def __ctypes_from_outparam__(self) -> Any:
self._needsfree = True
Expand Down

0 comments on commit cabab42

Please sign in to comment.