Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(13)  |  Call(2)  |  Derive(4)  |  Import(7)
An abstract base class to help with developing frostbite2 parsers

src/b/3/b3-1.9.2/b3/parsers/bf3.py   b3(Download)
#  implement getPlayerPings
#
from b3.parsers.frostbite2.abstractParser import AbstractParser
from b3.parsers.frostbite2.util import PlayerInfoBlock
import b3
class Bf3Parser(AbstractParser):
    gameName = 'bf3'
 
    _gameServerVars = (
        '3dSpotting',

src/b/i/big-brother-bot-HEAD/b3/parsers/bf3.py   big-brother-bot(Download)
#  implement getPlayerPings
#
from b3.parsers.frostbite2.abstractParser import AbstractParser
from b3.parsers.frostbite2.util import PlayerInfoBlock
import b3
class Bf3Parser(AbstractParser):
    gameName = 'bf3'
 
    _gameServerVars = (
        '3dSpotting',

src/b/i/big-brother-bot-HEAD/tests/parsers/test_bf3.py   big-brother-bot(Download)
    def setUpClass(cls):
        from b3.parsers.frostbite2.abstractParser import AbstractParser
        from b3.fake import FakeConsole
        AbstractParser.__bases__ = (FakeConsole,)
        # Now parser inheritance hierarchy is :

src/b/i/big-brother-bot-HEAD/tests/parsers/frostbite2/test_abstractParser.py   big-brother-bot(Download)
from b3.config import XmlConfigParser
from b3.parsers.frostbite2.protocol import CommandFailedError
from b3.parsers.frostbite2.abstractParser import AbstractParser
 
sleep_patcher = None
class ConcretegameParser(AbstractParser):
    gameName = 'thegame'
 
 
class AbstractParser_TestCase(unittest.TestCase):
    def setUp(self):
        self.conf = XmlConfigParser()
        self.conf.loadFromString("""<configuration/>""")
        self.parser = AbstractParser(self.conf)
        log = logging.getLogger('output')

src/b/3/b3-plugin-poweradminbf3-HEAD/tests/__init__.py   b3-plugin-poweradminbf3(Download)
 
        with logging_disabled():
            from b3.parsers.frostbite2.abstractParser import AbstractParser
            from b3.fake import FakeConsole
        AbstractParser.__bases__ = (FakeConsole,)

src/b/3/b3-1.9.2/tests/parsers/test_bf3.py   b3(Download)
    def setUpClass(cls):
        from b3.parsers.frostbite2.abstractParser import AbstractParser
        from b3.fake import FakeConsole
        AbstractParser.__bases__ = (FakeConsole,)
        # Now parser inheritance hierarchy is :

src/b/3/b3-1.9.2/tests/parsers/frostbite2/test_abstractParser.py   b3(Download)
from b3.config import XmlConfigParser
from b3.parsers.frostbite2.protocol import CommandFailedError
from b3.parsers.frostbite2.abstractParser import AbstractParser
 
sleep_patcher = None
class ConcretegameParser(AbstractParser):
    gameName = 'thegame'
 
 
class AbstractParser_TestCase(unittest.TestCase):
    def setUp(self):
        self.conf = XmlConfigParser()
        self.conf.loadFromString("""<configuration/>""")
        self.parser = AbstractParser(self.conf)
        log = logging.getLogger('output')