Skip to content

Commit

Permalink
Refactor string formatting to use f-strings in _memberspec.py
Browse files Browse the repository at this point in the history
  • Loading branch information
newwingbird committed Nov 16, 2024
1 parent 0848d0c commit 2d5ee2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comtypes/_memberspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ def __repr__(self):

def __iter__(self):
"""Explicitly disallow iteration."""
msg = "%r is not iterable" % self.name
msg = f"{self.name!r} is not iterable"
raise TypeError(msg)


Expand Down

0 comments on commit 2d5ee2e

Please sign in to comment.