Remove builtins imports

This module is not intended to be used directly in most cases, per:
https://docs.python.org/3/library/builtins.html

None of our usages warrant the explicit import. We also avoid some
confusion as folks dig to see what we are doing to require
importing builtins directly.
This commit is contained in:
Greg Taylor 2019-09-15 20:29:59 -07:00
parent e395ea9371
commit 5e1a672fc2
53 changed files with 0 additions and 84 deletions

View file

@ -14,7 +14,6 @@ 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,7 +10,6 @@ active players and so on.
"""
from builtins import object
from django.conf import settings
from evennia.utils import utils

View file

@ -13,7 +13,6 @@ 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

@ -10,7 +10,6 @@ client and update it when the size changes
"""
from codecs import encode as codecs_encode
from builtins import object
from django.conf import settings
NAWS = b'\x1f'

View file

@ -7,8 +7,6 @@ sets up all the networking features. (this is done automatically
by game/evennia.py).
"""
from builtins import object
import sys
import os
import time

View file

@ -5,8 +5,6 @@ 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
from evennia.server.session import Session

View file

@ -9,7 +9,6 @@ Using standard ssh client,
"""
from builtins import object
import os
import re

View file

@ -13,7 +13,6 @@ It is set as the NOGOAHEAD protocol_flag option.
http://www.faqs.org/rfcs/rfc858.html
"""
from builtins import object
SUPPRESS_GA = b'\x03'
# default taken from telnet specification

View file

@ -25,7 +25,6 @@ client supports MSDP and if not, we fallback to GMCP with a MSDP
header where applicable.
"""
from builtins import object
import re
import json
from evennia.utils.utils import is_iter

View file

@ -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,
under the 'TTYPE' key.
"""
from builtins import object
# telnet option codes
TTYPE = b'\x18'

View file

@ -32,8 +32,6 @@ for instructions on how to define this module.
"""
from builtins import range
import sys
import time
import random

View file

@ -7,7 +7,6 @@ sets up all the networking features. (this is done automatically
by evennia/server/server_runner.py).
"""
from builtins import object
import time
import sys
import os

View file

@ -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
are stored on the Portal side)
"""
from builtins import object
import weakref
import time
from django.utils import timezone

View file

@ -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.
"""
from builtins import object
from django.conf import settings
import time

View file

@ -13,7 +13,6 @@ There are two similar but separate stores of sessions:
"""
import time
from builtins import object
from django.conf import settings
from evennia.commands.cmdhandler import CMD_LOGINSTART