for line in readlines if SEPARATOR in line SN PASS line strip split SE

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
for line in f.readlines():
if SEPARATOR in line:
SN, PASS = line.strip().split(SEPARATOR)
protocol.ClientCreator(reactor, OA, SN, PASS, icq=1).connectTCP(*hostport)
reactor.run()
class B(oscar.BOSConnection):
capabilities = [oscar.CAP_CHAT]
def initDone(self):
self.requestSelfInfo().addCallback(self.gotSelfInfo)
self.requestSSI().addCallback(self.gotBuddyList)
....
def gotBuddyList(self, l):
....
self.disconnect()