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

@ -1,6 +1,7 @@
"""
IMC2 client module. Handles connecting to and communicating with an IMC2 server.
"""
from builtins import object
from time import time
from twisted.internet import task

View file

@ -4,6 +4,7 @@ http://www.mudbytes.net/index.php?a=articles&s=imc2_protocol
"""
from __future__ import print_function
from builtins import object
import shlex
from django.conf import settings

View file

@ -14,6 +14,7 @@ terribly slow connection.
This protocol is implemented by the telnet protocol importing
mccp_compress and calling it from its write methods.
"""
from builtins import object
import zlib
# negotiations for v1 and v2 of the protocol

View file

@ -10,6 +10,7 @@ active players and so on.
"""
from builtins import object
from django.conf import settings
from evennia.utils import utils

View file

@ -13,6 +13,7 @@ http://www.mushclient.com/mushclient/mxp.htm
http://www.gammon.com.au/mushclient/addingservermxp.htm
"""
from builtins import object
import re
LINKS_SUB = re.compile(r'\{lc(.*?)\{lt(.*?)\{le', re.DOTALL)

View file

@ -9,6 +9,7 @@ NAWS allows telnet clients to report their current window size to the
client and update it when the size changes
"""
from builtins import object
from django.conf import settings
NAWS = chr(31)

View file

@ -8,6 +8,7 @@ by game/evennia.py).
"""
from __future__ import print_function
from builtins import object
import time
import sys

View file

@ -5,6 +5,7 @@ This connects an RSS feed to an in-game Evennia channel, sending messages
to the channel whenever the feed updates.
"""
from builtins import object
from twisted.internet import task, threads
from django.conf import settings

View file

@ -9,6 +9,7 @@ Using standard ssh client,
"""
from __future__ import print_function
from builtins import object
import os
from twisted.cred.checkers import credentials

View file

@ -18,6 +18,7 @@ for updating health bars etc. See also GMCP which is another standard
doing the same thing.
"""
from builtins import object
import re
import json
from evennia.utils.utils import to_str

View file

@ -10,6 +10,7 @@ etc. If the client does not support TTYPE, this will be ignored.
All data will be stored on the protocol's protocol_flags dictionary,
under the 'TTYPE' key.
"""
from builtins import object
# telnet option codes
TTYPE = chr(24)