Remove to_unicode.
This commit is contained in:
parent
7d524ac328
commit
6f91e1e546
15 changed files with 23 additions and 70 deletions
|
|
@ -7,7 +7,7 @@ from django.db.models import Q
|
|||
from django.conf import settings
|
||||
from django.db.models.fields import exceptions
|
||||
from evennia.typeclasses.managers import TypedObjectManager, TypeclassManager
|
||||
from evennia.utils.utils import to_unicode, is_iter, make_iter, string_partial_matching
|
||||
from evennia.utils.utils import is_iter, make_iter, string_partial_matching
|
||||
from builtins import int
|
||||
|
||||
__all__ = ("ObjectManager",)
|
||||
|
|
@ -72,7 +72,7 @@ class ObjectDBManager(TypedObjectManager):
|
|||
match (Object or list): One or more matching results.
|
||||
|
||||
"""
|
||||
ostring = to_unicode(ostring).lstrip('*')
|
||||
ostring = str(ostring).lstrip('*')
|
||||
# simplest case - search by dbref
|
||||
dbref = self.dbref(ostring)
|
||||
if dbref:
|
||||
|
|
@ -196,8 +196,6 @@ class ObjectDBManager(TypedObjectManager):
|
|||
typeclasses (list, optional): List of typeclass-path strings to restrict matches with
|
||||
|
||||
"""
|
||||
if isinstance(property_value, str):
|
||||
property_value = to_unicode(property_value)
|
||||
if isinstance(property_name, str):
|
||||
if not property_name.startswith('db_'):
|
||||
property_name = "db_%s" % property_name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue