From 4dd0709f66845939bcbf5c5ac8bb072d01cbffe3 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 1 Oct 2016 12:43:12 -0700 Subject: [PATCH] protocols, core: remove unused imports --- classes.py | 1 - log.py | 1 - protocols/clientbot.py | 1 - protocols/hybrid.py | 3 --- protocols/inspircd.py | 4 ---- protocols/ratbox.py | 3 --- protocols/ts6.py | 2 -- protocols/unreal.py | 2 -- 8 files changed, 17 deletions(-) diff --git a/classes.py b/classes.py index bf29c4a..f6b4dee 100644 --- a/classes.py +++ b/classes.py @@ -8,7 +8,6 @@ Here be dragons. """ import threading -from random import randint import time import socket import ssl diff --git a/log.py b/log.py index 8759e2a..cd29c7f 100644 --- a/log.py +++ b/log.py @@ -8,7 +8,6 @@ access the global logger object by importing "log" from this module import logging import logging.handlers -import sys import os from . import world, conf diff --git a/protocols/clientbot.py b/protocols/clientbot.py index bf882d1..dafd989 100644 --- a/protocols/clientbot.py +++ b/protocols/clientbot.py @@ -1,5 +1,4 @@ import time -import string import threading from pylinkirc import utils, conf diff --git a/protocols/hybrid.py b/protocols/hybrid.py index fe19d8a..9f22a14 100644 --- a/protocols/hybrid.py +++ b/protocols/hybrid.py @@ -1,7 +1,4 @@ import time -import sys -import os -import re from pylinkirc import utils from pylinkirc.log import log diff --git a/protocols/inspircd.py b/protocols/inspircd.py index fa53f4a..b7ad10f 100644 --- a/protocols/inspircd.py +++ b/protocols/inspircd.py @@ -3,9 +3,6 @@ inspircd.py: InspIRCd 2.x protocol module for PyLink. """ import time -import sys -import os -import re import threading from pylinkirc import utils @@ -774,7 +771,6 @@ class InspIRCdProtocol(TS6BaseProtocol): """ Stub VERSION handler (does nothing) to override the one in ts6_common. """ - pass def handle_kill(self, source, command, args): """Handles incoming KILLs.""" diff --git a/protocols/ratbox.py b/protocols/ratbox.py index 692c5da..7f5c060 100644 --- a/protocols/ratbox.py +++ b/protocols/ratbox.py @@ -1,7 +1,4 @@ import time -import sys -import os -import re from pylinkirc import utils from pylinkirc.log import log diff --git a/protocols/ts6.py b/protocols/ts6.py index ad6a297..eb2a8cf 100644 --- a/protocols/ts6.py +++ b/protocols/ts6.py @@ -3,8 +3,6 @@ ts6.py: PyLink protocol module for TS6-based IRCds (charybdis, elemental-ircd). """ import time -import sys -import os import re from pylinkirc import utils diff --git a/protocols/unreal.py b/protocols/unreal.py index a8fb35a..d9793a7 100644 --- a/protocols/unreal.py +++ b/protocols/unreal.py @@ -3,8 +3,6 @@ unreal.py: UnrealIRCd 4.0 protocol module for PyLink. """ import time -import sys -import os import codecs import socket import re