Skip to content

Commit c04b798

Browse files
committed
remove unnecessary lstrip
1 parent a6fec04 commit c04b798

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tomlkit/items.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ def __str__(self) -> str:
574574
return f"{self._trivia.indent}{decode(self._trivia.comment)}"
575575

576576
def unwrap(self):
577-
return decode(self._trivia.comment).lstrip().lstrip("#").lstrip()
577+
return decode(self._trivia.comment).lstrip("#").lstrip()
578578

579579
def __repr__(self) -> str:
580580
return f"<{self.__class__.__name__} {self.unwrap()!r}>"

0 commit comments

Comments
 (0)