Merge pull request #1771 from vincent-lg/fix-accents2
Fix accents in Evennia py3, bring compatibility with Evennia 0.8 data
This commit is contained in:
commit
abfa47315e
1 changed files with 2 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ except ImportError:
|
||||||
from django.core.exceptions import ObjectDoesNotExist
|
from django.core.exceptions import ObjectDoesNotExist
|
||||||
from django.contrib.contenttypes.models import ContentType
|
from django.contrib.contenttypes.models import ContentType
|
||||||
from django.utils.safestring import SafeString, SafeBytes
|
from django.utils.safestring import SafeString, SafeBytes
|
||||||
from evennia.utils.utils import to_str, uses_database, is_iter
|
from evennia.utils.utils import uses_database, is_iter
|
||||||
from evennia.utils import logger
|
from evennia.utils import logger
|
||||||
|
|
||||||
__all__ = ("to_pickle", "from_pickle", "do_pickle", "do_unpickle",
|
__all__ = ("to_pickle", "from_pickle", "do_pickle", "do_unpickle",
|
||||||
|
|
@ -674,7 +674,7 @@ def from_pickle(data, db_obj=None):
|
||||||
|
|
||||||
def do_pickle(data):
|
def do_pickle(data):
|
||||||
"""Perform pickle to string"""
|
"""Perform pickle to string"""
|
||||||
return to_str(dumps(data, protocol=PICKLE_PROTOCOL))
|
return dumps(data, protocol=PICKLE_PROTOCOL)
|
||||||
|
|
||||||
|
|
||||||
def do_unpickle(data):
|
def do_unpickle(data):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue