Import python3 compatible object.

This commit is contained in:
Ahmed Charles 2015-10-23 02:26:37 +00:00 committed by Griatch
parent 4f07da29c2
commit 11b61fe335
43 changed files with 43 additions and 0 deletions

View file

@ -13,6 +13,7 @@ it is run by Evennia just before returning data to/from the
user.
"""
from builtins import object
import re
from evennia.utils import utils
from evennia.utils.utils import to_str, to_unicode

View file

@ -167,6 +167,7 @@ caller.msg("The object was created!")
script = create.create_script()
```
"""
from builtins import object
import re
import codecs

View file

@ -18,6 +18,7 @@ in-situ, e.g `obj.db.mynestedlist[3][5] = 3` would never be saved and
be out of sync with the database.
"""
from builtins import object
from functools import update_wrapper
from collections import defaultdict, MutableSequence, MutableSet, MutableMapping

View file

@ -33,6 +33,7 @@ and initialize it:
displayed in the editor.
"""
from builtins import object
import re
from django.conf import settings

View file

@ -135,6 +135,7 @@ form will raise an error.
"""
from __future__ import print_function
from builtins import object
import re
import copy

View file

@ -134,6 +134,7 @@ evennia.utils.evmenu`.
"""
from __future__ import print_function
from builtins import object
from textwrap import dedent
from inspect import isfunction, getargspec

View file

@ -25,6 +25,7 @@ long enough to need to scroll and **kwargs will be passed on to the
caller.msg() construct (text will be using the pager restrictor).
"""
from builtins import object
from django.conf import settings
from evennia import Command, CmdSet

View file

@ -115,6 +115,7 @@ table string.
"""
from __future__ import print_function
from builtins import object
#from textwrap import wrap
from django.conf import settings
from textwrap import TextWrapper

View file

@ -28,6 +28,7 @@ Pickle field implementation for Django.
Modified for Evennia by Griatch.
"""
from builtins import object
from ast import literal_eval
from copy import deepcopy

View file

@ -30,6 +30,7 @@
# POSSIBILITY OF SUCH DAMAGE.
from __future__ import print_function
from builtins import object
__version__ = "trunk"
import copy

View file

@ -9,6 +9,7 @@ snippet #577349 on http://code.activestate.com.
(extensively modified by Griatch 2010)
"""
from __future__ import absolute_import
from builtins import object
import re
import cgi

View file

@ -7,6 +7,7 @@ be of use when designing your own game.
"""
from __future__ import division
from __future__ import print_function
from builtins import object
import os
import sys