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

@ -145,7 +145,7 @@ class ScriptDB(TypedObject):
pass
if isinstance(value, (str, int)):
from evennia.objects.models import ObjectDB
value = to_str(value, force_string=True)
value = to_str(value)
if (value.isdigit() or value.startswith("#")):
dbid = dbref(value, reqhash=False)
if dbid: