3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-18 16:12:43 +01:00

remove some debugging cruft and unused imports

This commit is contained in:
James Lu 2015-07-23 11:46:45 -07:00
parent 83494482a2
commit 254ccea0a3
6 changed files with 0 additions and 8 deletions

View File

@ -1,4 +1,3 @@
from collections import defaultdict
import threading import threading
from random import randint from random import randint

View File

@ -1,7 +1,6 @@
# commands.py: base PyLink commands # commands.py: base PyLink commands
import sys import sys
import os import os
import logging
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import utils import utils

View File

@ -5,7 +5,6 @@ sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import pickle import pickle
import sched import sched
import threading import threading
import time
import string import string
from collections import defaultdict from collections import defaultdict

View File

@ -2,7 +2,6 @@ import time
import sys import sys
import os import os
import re import re
from copy import copy
curdir = os.path.dirname(__file__) curdir = os.path.dirname(__file__)
sys.path += [curdir, os.path.dirname(curdir)] sys.path += [curdir, os.path.dirname(curdir)]

View File

@ -2,7 +2,6 @@ import sys
import os import os
sys.path += [os.getcwd(), os.path.join(os.getcwd(), 'protocols')] sys.path += [os.getcwd(), os.path.join(os.getcwd(), 'protocols')]
import unittest import unittest
import time
from collections import defaultdict from collections import defaultdict
import inspircd import inspircd
@ -72,7 +71,6 @@ class TestProtoInspIRCd(unittest.TestCase):
self.assertNotIn(u, self.irc.channels['#channel'].users) self.assertNotIn(u, self.irc.channels['#channel'].users)
self.assertNotIn(u, self.irc.users) self.assertNotIn(u, self.irc.users)
self.assertNotIn(u, self.irc.servers[self.irc.sid].users) self.assertNotIn(u, self.irc.servers[self.irc.sid].users)
pass
def testKickClient(self): def testKickClient(self):
target = self.proto.spawnClient(self.irc, 'soccerball', 'soccerball', 'abcd').uid target = self.proto.spawnClient(self.irc, 'soccerball', 'soccerball', 'abcd').uid

View File

@ -98,8 +98,6 @@ class TS6SIDGenerator():
self.iters[pos] = iter(self.allowedchars[pos]) self.iters[pos] = iter(self.allowedchars[pos])
next(self.iters[pos]) next(self.iters[pos])
self.increment(pos-1) self.increment(pos-1)
else:
print('NEXT')
def next_sid(self): def next_sid(self):
sid = ''.join(self.output) sid = ''.join(self.output)