mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 09:19:23 +01:00
remove some debugging cruft and unused imports
This commit is contained in:
parent
83494482a2
commit
254ccea0a3
@ -1,4 +1,3 @@
|
|||||||
from collections import defaultdict
|
|
||||||
import threading
|
import threading
|
||||||
from random import randint
|
from random import randint
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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)]
|
||||||
|
@ -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
|
||||||
|
2
utils.py
2
utils.py
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user