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

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/p/y/Pyromancer-0.4/pyromancer/decorators.py   Pyromancer(Download)
import re
from types import GeneratorType
 
from pyromancer.exceptions import CommandException
from pyromancer.objects import Match
 
        if self.code is not None and not isinstance(self.code, int):
            raise CommandException('The code argument must be an integer.')
 
        if self.code:
            self.raw = True
 
        if not self.code and len(patterns) == 0:
            raise CommandException(
                'Either a (a list of) pattern(s) or a code '

src/p/y/Pyromancer-0.4/pyromancer/test/test_command_decorator.py   Pyromancer(Download)
 
from pyromancer.decorators import command
from pyromancer.exceptions import CommandException
from pyromancer.objects import Match, Line
from pyromancer.test.decorators import mock_connection