Merge pull request #554 from scop/patch-1

Fix `vText.__repr__` `BytesWarning`
pull/555/head
Jaca 2023-09-17 10:37:35 +02:00 zatwierdzone przez GitHub
commit 52d5cea2b0
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -12,6 +12,7 @@ Minor changes:
- Move pip caching into Python setup action.
- Check that issue #165 can be closed.
- Updated about.rst for issue #527
- Avoid ``vText.__repr__`` BytesWarning.
Breaking changes:

Wyświetl plik

@ -43,6 +43,7 @@ icalendar contributors
- Thomas Bruederli <thomas@roundcube.net>
- Thomas Weißschuh <thomas@t-8ch.de>
- Victor Varvaryuk <victor.varvariuc@gmail.com>
- Ville Skyttä <ville.skytta@iki.fi>
- Wichert Akkerman <wichert@wiggy.net>
- cillianderoiste <cillian.deroiste@gmail.com>
- fitnr <fitnr@fakeisthenewreal>

Wyświetl plik

@ -719,7 +719,7 @@ class vText(str):
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)