Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(4) | Call(2) | Derive(0) | Import(2)
help extract banlist info from a frostbite banList.list response usage : words = [2, 'name', 'Courgette', 'perm', , 'test', 'name', 'Courgette', 'seconds', 3600 , 'test2'] bansInfo = BanlistContent(words) print "num of bans : %s" % len(bansInfo) print "first ban : %s" % bansInfo[0] print "second ban : %s" % bansInfo[1](more...)
src/b/3/b3-1.9.2/tests/parsers/frostbite/test_util.py b3(Download)
# import unittest2 as unittest from b3.parsers.frostbite.util import BanlistContent, PlayerInfoBlock
def test_1(self): bloc = BanlistContent(['2','d1','d2','d3','d4','d5','p1','p2','p3','p4','p5']) self.assertEqual(2, len(bloc)) self.assertEqual("BanlistContent[{'idType': 'd1', 'reason': 'd5', 'banType': 'd3', 'id': 'd2', 'time': 'd4'}{'idType': 'p1', 'reason': 'p5', 'banType': 'p3', 'id': 'p2', 'time': 'p4'}]", repr(bloc))
src/b/i/big-brother-bot-HEAD/tests/parsers/frostbite/test_util.py big-brother-bot(Download)
# import unittest2 as unittest from b3.parsers.frostbite.util import BanlistContent, PlayerInfoBlock
def test_1(self): bloc = BanlistContent(['2','d1','d2','d3','d4','d5','p1','p2','p3','p4','p5']) self.assertEqual(2, len(bloc)) self.assertEqual("BanlistContent[{'idType': 'd1', 'reason': 'd5', 'banType': 'd3', 'id': 'd2', 'time': 'd4'}{'idType': 'p1', 'reason': 'p5', 'banType': 'p3', 'id': 'p2', 'time': 'p4'}]", repr(bloc))