Import python3 compatible object.
This commit is contained in:
parent
4f07da29c2
commit
11b61fe335
43 changed files with 43 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ active players and so on.
|
|||
|
||||
|
||||
"""
|
||||
from builtins import object
|
||||
from django.conf import settings
|
||||
from evennia.utils import utils
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ by game/evennia.py).
|
|||
|
||||
"""
|
||||
from __future__ import print_function
|
||||
from builtins import object
|
||||
|
||||
import time
|
||||
import sys
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue