Skip to content

Commit

Permalink
Fix vText.__repr__ BytesWarning
Browse files Browse the repository at this point in the history
Exposed by running in `python3 -b` mode.
  • Loading branch information
scop committed Sep 17, 2023
1 parent 923666a commit 5dd7f69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/icalendar/prop.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ def __new__(cls, value, encoding=DEFAULT_ENCODING):
return self

def __repr__(self):
return f"vText('{self.to_ical()}')"
return f"vText('{self.to_ical()!r}')"

def to_ical(self):
return escape_char(self).encode(self.encoding)
Expand Down

0 comments on commit 5dd7f69

Please sign in to comment.