Skip to content

Commit

Permalink
un-needed str() call
Browse files Browse the repository at this point in the history
  • Loading branch information
benkiel committed Nov 4, 2024
1 parent 157dd67 commit 4fe34b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Lib/fontParts/base/anchor.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _reprContents(self):
if self.name is not None:
contents.append(f"name='{self.name}'")
if self.color:
contents.append(f"color={str(self.color)!r}")
contents.append(f"color={self.color!r}")
return contents

# ----
Expand Down
2 changes: 1 addition & 1 deletion Lib/fontParts/base/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def _reprContents(self):
f"offset='({self.offset[0]}, {self.offset[1]})'",
]
if self.color:
contents.append(f"color={str(self.color)!r}")
contents.append(f"color={self.color!r}")
if self.glyph is not None:
contents.append("in glyph")
contents += self.glyph._reprContents()
Expand Down
2 changes: 1 addition & 1 deletion Lib/fontParts/base/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ def _reprContents(self) -> List[str]:
f"'{self.name}'",
]
if self.color:
contents.append(f"color={str(self.color)!r}")
contents.append(f"color={self.color!r}")
return contents

# ----
Expand Down

0 comments on commit 4fe34b8

Please sign in to comment.