Use to_str/to_bytes, replacing old versions

This commit is contained in:
Griatch 2019-01-16 23:26:46 +01:00
commit c3ebd8d251
24 changed files with 130 additions and 121 deletions

View file

@ -2077,7 +2077,7 @@ class CmdExamine(ObjManipCommand):
"""
if crop:
if not isinstance(value, str):
value = utils.to_str(value, force_string=True)
value = utils.to_str(value)
value = utils.crop(value)
string = "\n %s = %s" % (attr, value)