Merge pull request #1938 from gtaylor/builtins-removal
Remove builtins imports
This commit is contained in:
commit
741dc652d6
53 changed files with 0 additions and 84 deletions
|
|
@ -2,8 +2,6 @@
|
||||||
# This sets up how models are displayed
|
# This sets up how models are displayed
|
||||||
# in the web admin interface.
|
# in the web admin interface.
|
||||||
#
|
#
|
||||||
from builtins import object
|
|
||||||
|
|
||||||
from django import forms
|
from django import forms
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,6 @@ persistently store attributes of its own. This is ideal for extra
|
||||||
account info and OOC account configuration variables etc.
|
account info and OOC account configuration variables etc.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.db import models
|
from django.db import models
|
||||||
from django.contrib.auth.models import AbstractUser
|
from django.contrib.auth.models import AbstractUser
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,6 @@ can then implement separate sets for different situations. For
|
||||||
example, you can have a 'On a boat' set, onto which you then tack on
|
example, you can have a 'On a boat' set, onto which you then tack on
|
||||||
the 'Fishing' set. Fishing from a boat? No problem!
|
the 'Fishing' set. Fishing from a boat? No problem!
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
import sys
|
import sys
|
||||||
from traceback import format_exc
|
from traceback import format_exc
|
||||||
from importlib import import_module
|
from importlib import import_module
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@ The base Command class.
|
||||||
All commands in Evennia inherit from the 'Command' class in this module.
|
All commands in Evennia inherit from the 'Command' class in this module.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from builtins import range
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import math
|
import math
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,6 @@ self.msg() and similar methods to reroute returns to the correct
|
||||||
method. Otherwise all text will be returned to all connected sessions.
|
method. Otherwise all text will be returned to all connected sessions.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from builtins import range
|
|
||||||
|
|
||||||
import time
|
import time
|
||||||
from codecs import lookup as codecs_lookup
|
from codecs import lookup as codecs_lookup
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@ therefore always be limited to superusers only.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
import re
|
import re
|
||||||
from builtins import range
|
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from evennia.utils.batchprocessors import BATCHCMD, BATCHCODE
|
from evennia.utils.batchprocessors import BATCHCMD, BATCHCODE
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
"""
|
"""
|
||||||
Building and world design commands
|
Building and world design commands
|
||||||
"""
|
"""
|
||||||
from builtins import range
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.db.models import Q
|
from django.db.models import Q
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,6 @@ update() on the channelhandler. Or use Channel.objects.delete() which
|
||||||
does this for you.
|
does this for you.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from evennia.commands import cmdset, command
|
from evennia.commands import cmdset, command
|
||||||
from evennia.utils.logger import tail_log_file
|
from evennia.utils.logger import tail_log_file
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,6 @@ Channels are central objects that act as targets for Msgs. Accounts can
|
||||||
connect to channels by use of a ChannelConnect object (this object is
|
connect to channels by use of a ChannelConnect object (this object is
|
||||||
necessary to easily be able to delete connections on the fly).
|
necessary to easily be able to delete connections on the fly).
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
|
|
||||||
|
|
@ -94,8 +94,6 @@ in-game.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from builtins import object
|
|
||||||
|
|
||||||
from evennia import Command, DefaultScript, CmdSet
|
from evennia import Command, DefaultScript, CmdSet
|
||||||
|
|
||||||
TRADE_TIMEOUT = 60 # timeout for B to accept trade
|
TRADE_TIMEOUT = 60 # timeout for B to accept trade
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,6 @@ at_cmdset_creation():
|
||||||
After a reload the dice (or roll) command will be available in-game.
|
After a reload the dice (or roll) command will be available in-game.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from builtins import range
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from random import randint
|
from random import randint
|
||||||
from evennia import default_cmds, CmdSet
|
from evennia import default_cmds, CmdSet
|
||||||
|
|
|
||||||
|
|
@ -90,8 +90,6 @@ Usage:
|
||||||
that never change (if this is desired).
|
that never change (if this is desired).
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from builtins import range
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from random import choice, randint
|
from random import choice, randint
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
|
||||||
|
|
@ -94,8 +94,6 @@ Verbose Installation Instructions:
|
||||||
@type/reset/force me = typeclasses.characters.Character
|
@type/reset/force me = typeclasses.characters.Character
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from re import escape as re_escape
|
from re import escape as re_escape
|
||||||
import itertools
|
import itertools
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
"""
|
"""
|
||||||
This defines how to edit help entries in Admin.
|
This defines how to edit help entries in Admin.
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
|
|
||||||
from django import forms
|
from django import forms
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from evennia.help.models import HelpEntry
|
from evennia.help.models import HelpEntry
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,6 @@ forms of help that do not concern commands, like information about the
|
||||||
game world, policy info, rules and similar.
|
game world, policy info, rules and similar.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
|
|
||||||
from django.contrib.contenttypes.models import ContentType
|
from django.contrib.contenttypes.models import ContentType
|
||||||
from django.db import models
|
from django.db import models
|
||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
|
|
|
||||||
|
|
@ -104,8 +104,6 @@ to any other identifier you can use.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from builtins import object
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from evennia.utils import logger, utils
|
from evennia.utils import logger, utils
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,6 @@
|
||||||
# This sets up how models are displayed
|
# This sets up how models are displayed
|
||||||
# in the web admin interface.
|
# in the web admin interface.
|
||||||
#
|
#
|
||||||
from builtins import object
|
|
||||||
|
|
||||||
from django import forms
|
from django import forms
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@ from django.conf import settings
|
||||||
from django.db.models.fields import exceptions
|
from django.db.models.fields import exceptions
|
||||||
from evennia.typeclasses.managers import TypedObjectManager, TypeclassManager
|
from evennia.typeclasses.managers import TypedObjectManager, TypeclassManager
|
||||||
from evennia.utils.utils import 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",)
|
__all__ = ("ObjectManager",)
|
||||||
_GA = object.__getattribute__
|
_GA = object.__getattribute__
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,6 @@ Attributes are separate objects that store values persistently onto
|
||||||
the database object. Like everything else, they can be accessed
|
the database object. Like everything else, they can be accessed
|
||||||
transparently through the decorating TypeClass.
|
transparently through the decorating TypeClass.
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.db import models
|
from django.db import models
|
||||||
from django.core.exceptions import ObjectDoesNotExist
|
from django.core.exceptions import ObjectDoesNotExist
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ entities.
|
||||||
"""
|
"""
|
||||||
import time
|
import time
|
||||||
import inflect
|
import inflect
|
||||||
from builtins import object
|
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,6 @@ Common examples of uses of Scripts:
|
||||||
- Give the account/object a time-limited bonus/effect
|
- Give the account/object a time-limited bonus/effect
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.db import models
|
from django.db import models
|
||||||
from django.core.exceptions import ObjectDoesNotExist
|
from django.core.exceptions import ObjectDoesNotExist
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,6 @@ functionality:
|
||||||
|
|
||||||
"""
|
"""
|
||||||
import inspect
|
import inspect
|
||||||
from builtins import object
|
|
||||||
|
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from evennia.server.models import ServerConfig
|
from evennia.server.models import ServerConfig
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@ added to all game objects. You access it through the property
|
||||||
`scripts` on the game object.
|
`scripts` on the game object.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
|
|
||||||
from evennia.scripts.models import ScriptDB
|
from evennia.scripts.models import ScriptDB
|
||||||
from evennia.utils import create
|
from evennia.utils import create
|
||||||
from evennia.utils import logger
|
from evennia.utils import logger
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,6 @@ call the handler's `save()` and `restore()` methods when the server reboots.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
import inspect
|
import inspect
|
||||||
from builtins import object
|
|
||||||
|
|
||||||
from twisted.internet.defer import inlineCallbacks
|
from twisted.internet.defer import inlineCallbacks
|
||||||
from django.core.exceptions import ObjectDoesNotExist
|
from django.core.exceptions import ObjectDoesNotExist
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ terribly slow connection.
|
||||||
This protocol is implemented by the telnet protocol importing
|
This protocol is implemented by the telnet protocol importing
|
||||||
mccp_compress and calling it from its write methods.
|
mccp_compress and calling it from its write methods.
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
import zlib
|
import zlib
|
||||||
|
|
||||||
# negotiations for v1 and v2 of the protocol
|
# negotiations for v1 and v2 of the protocol
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ active players and so on.
|
||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from evennia.utils import utils
|
from evennia.utils import utils
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ http://www.mushclient.com/mushclient/mxp.htm
|
||||||
http://www.gammon.com.au/mushclient/addingservermxp.htm
|
http://www.gammon.com.au/mushclient/addingservermxp.htm
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
LINKS_SUB = re.compile(r'\|lc(.*?)\|lt(.*?)\|le', re.DOTALL)
|
LINKS_SUB = re.compile(r'\|lc(.*?)\|lt(.*?)\|le', re.DOTALL)
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ client and update it when the size changes
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from codecs import encode as codecs_encode
|
from codecs import encode as codecs_encode
|
||||||
from builtins import object
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
NAWS = b'\x1f'
|
NAWS = b'\x1f'
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,6 @@ sets up all the networking features. (this is done automatically
|
||||||
by game/evennia.py).
|
by game/evennia.py).
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@ This connects an RSS feed to an in-game Evennia channel, sending messages
|
||||||
to the channel whenever the feed updates.
|
to the channel whenever the feed updates.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
|
|
||||||
from twisted.internet import task, threads
|
from twisted.internet import task, threads
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from evennia.server.session import Session
|
from evennia.server.session import Session
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,6 @@ Using standard ssh client,
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from builtins import object
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ It is set as the NOGOAHEAD protocol_flag option.
|
||||||
http://www.faqs.org/rfcs/rfc858.html
|
http://www.faqs.org/rfcs/rfc858.html
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
SUPPRESS_GA = b'\x03'
|
SUPPRESS_GA = b'\x03'
|
||||||
|
|
||||||
# default taken from telnet specification
|
# default taken from telnet specification
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,6 @@ client supports MSDP and if not, we fallback to GMCP with a MSDP
|
||||||
header where applicable.
|
header where applicable.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
import re
|
import re
|
||||||
import json
|
import json
|
||||||
from evennia.utils.utils import is_iter
|
from evennia.utils.utils import is_iter
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ etc. If the client does not support TTYPE, this will be ignored.
|
||||||
All data will be stored on the protocol's protocol_flags dictionary,
|
All data will be stored on the protocol's protocol_flags dictionary,
|
||||||
under the 'TTYPE' key.
|
under the 'TTYPE' key.
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
|
|
||||||
# telnet option codes
|
# telnet option codes
|
||||||
TTYPE = b'\x18'
|
TTYPE = b'\x18'
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,6 @@ for instructions on how to define this module.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
from builtins import range
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import random
|
import random
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ sets up all the networking features. (this is done automatically
|
||||||
by evennia/server/server_runner.py).
|
by evennia/server/server_runner.py).
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
import time
|
import time
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,6 @@ connection actually happens (so it's the same for telnet, web, ssh etc).
|
||||||
It is stored on the Server side (as opposed to protocol-specific sessions which
|
It is stored on the Server side (as opposed to protocol-specific sessions which
|
||||||
are stored on the Portal side)
|
are stored on the Portal side)
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
|
|
||||||
import weakref
|
import weakref
|
||||||
import time
|
import time
|
||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ This module defines a generic session class. All connection instances
|
||||||
(both on Portal and Server side) should inherit from this class.
|
(both on Portal and Server side) should inherit from this class.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ There are two similar but separate stores of sessions:
|
||||||
|
|
||||||
"""
|
"""
|
||||||
import time
|
import time
|
||||||
from builtins import object
|
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from evennia.commands.cmdhandler import CMD_LOGINSTART
|
from evennia.commands.cmdhandler import CMD_LOGINSTART
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@ which is a non-db version of Attributes.
|
||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
import re
|
import re
|
||||||
import fnmatch
|
import fnmatch
|
||||||
import weakref
|
import weakref
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,6 @@ This module also contains the Managers for the respective models; inherit from
|
||||||
these to create custom managers.
|
these to create custom managers.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
|
|
||||||
from django.db.models import signals
|
from django.db.models import signals
|
||||||
|
|
||||||
from django.db.models.base import ModelBase
|
from django.db.models.base import ModelBase
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,6 @@ used for storing Aliases and Permissions. This module contains the
|
||||||
respective handlers.
|
respective handlers.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ the ansi mapping.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
import functools
|
import functools
|
||||||
from builtins import object, range
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
|
|
|
||||||
|
|
@ -170,8 +170,6 @@ if DEBUG:
|
||||||
script = create.create_script()
|
script = create.create_script()
|
||||||
```
|
```
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import codecs
|
import codecs
|
||||||
import traceback
|
import traceback
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,6 @@ in-situ, e.g `obj.db.mynestedlist[3][5] = 3` would never be saved and
|
||||||
be out of sync with the database.
|
be out of sync with the database.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from builtins import object, int
|
|
||||||
|
|
||||||
from functools import update_wrapper
|
from functools import update_wrapper
|
||||||
from collections import defaultdict, MutableSequence, MutableSet, MutableMapping
|
from collections import defaultdict, MutableSequence, MutableSet, MutableMapping
|
||||||
from collections import OrderedDict, deque
|
from collections import OrderedDict, deque
|
||||||
|
|
|
||||||
|
|
@ -42,8 +42,6 @@ In addition, the EvEditor can be used to enter Python source code,
|
||||||
and offers basic handling of indentation.
|
and offers basic handling of indentation.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
|
||||||
|
|
@ -129,8 +129,6 @@ form will raise an error.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from builtins import object, range
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import copy
|
import copy
|
||||||
from evennia.utils.evtable import EvCell, EvTable
|
from evennia.utils.evtable import EvCell, EvTable
|
||||||
|
|
|
||||||
|
|
@ -166,7 +166,6 @@ evennia.utils.evmenu`.
|
||||||
|
|
||||||
import random
|
import random
|
||||||
import inspect
|
import inspect
|
||||||
from builtins import object, range
|
|
||||||
|
|
||||||
from inspect import isfunction, getargspec
|
from inspect import isfunction, getargspec
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,6 @@ of the text. The remaining **kwargs will be passed on to the
|
||||||
caller.msg() construct every time the page is updated.
|
caller.msg() construct every time the page is updated.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from builtins import object, range
|
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from evennia import Command, CmdSet
|
from evennia import Command, CmdSet
|
||||||
from evennia.commands import cmdhandler
|
from evennia.commands import cmdhandler
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,6 @@ leave caching unexpectedly (no use of WeakRefs).
|
||||||
Also adds `cache_size()` for monitoring the size of the cache.
|
Also adds `cache_size()` for monitoring the size of the cache.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from builtins import object
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import threading
|
import threading
|
||||||
import gc
|
import gc
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
|
|
||||||
from builtins import range
|
|
||||||
|
|
||||||
from django.test import TestCase
|
from django.test import TestCase
|
||||||
|
|
||||||
from .models import SharedMemoryModel
|
from .models import SharedMemoryModel
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,6 @@ Pickle field implementation for Django.
|
||||||
Modified for Evennia by Griatch and the Evennia community.
|
Modified for Evennia by Griatch and the Evennia community.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from builtins import object
|
|
||||||
from ast import literal_eval
|
from ast import literal_eval
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,6 @@ snippet #577349 on http://code.activestate.com.
|
||||||
(extensively modified by Griatch 2010)
|
(extensively modified by Griatch 2010)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from builtins import object
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import cgi
|
import cgi
|
||||||
from .ansi import *
|
from .ansi import *
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue