Use with_metaclass from future.utils for python3 compat.
This commit is contained in:
parent
79437c0e48
commit
8a66fc40a9
11 changed files with 21 additions and 26 deletions
|
|
@ -8,16 +8,15 @@ from evennia.comms.models import Msg, TempMsg, ChannelDB
|
|||
from evennia.comms.managers import ChannelManager
|
||||
from evennia.utils import logger
|
||||
from evennia.utils.utils import make_iter
|
||||
from future.utils import with_metaclass
|
||||
|
||||
|
||||
class DefaultChannel(ChannelDB):
|
||||
class DefaultChannel(with_metaclass(TypeclassBase, ChannelDB)):
|
||||
"""
|
||||
This is the base class for all Channel Comms. Inherit from this to
|
||||
create different types of communication channels.
|
||||
|
||||
"""
|
||||
# typeclass setup
|
||||
__metaclass__ = TypeclassBase
|
||||
objects = ChannelManager()
|
||||
|
||||
def at_first_save(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue