Skip to content

string: Stringify string subclasses using string's repr

Python 3.8 removes the tp_str for various built-in types, so we would print long-derived values as their repr (for example dbus.String('foo')), which is a regression. Print them as 'foo' instead.

Signed-off-by: Neal Gompa ngompa13@gmail.com

Fixes: #34

Edited by Simon McVittie

Merge request reports

Loading