Projet

Général

Profil

0001-misc-allow-journald-logging-of-unicode-strings-30890.patch

Frédéric Péters, 25 février 2019 21:43

Télécharger (794 octets)

Voir les différences:

Subject: [PATCH] misc: allow journald logging of unicode strings (#30890)

 hobo/journal.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hobo/journal.py
36 36
def _make_line(field, value):
37 37
    if isinstance(value, bytes):
38 38
        return field.encode('utf-8') + b'=' + value
39
    elif isinstance(value, str):
39
    elif isinstance(value, basestring):
40 40
        return field + '=' + value
41 41
    else:
42 42
        return field + '=' + str(value)
43
-