(source)
Juice from a source file the four args needed by decoder.
Juice from a source file the four args needed by decoder.
Juice from a source file the four args needed by decoder .
def _filterargs(source):
    """Juice from a source file the four args needed by decoder."""
    argsregex = (r"}\('(.*)', *(\d+), *(\d+), *'(.*)'\."
                 r"split\('\|'\), *(\d+), *(.*)\)\)")
    args = re.search(argsregex, source, re.DOTALL).groups()

    try:
        return args[0], args[3].split('|'), int(args[1]), int(args[2])
    except ValueError:
        raise UnpackingError('Corrupted p.a.c.k.e.r. data.')
def _filterargs ( source ) : argsregex = ( r"}\('(.*)', *(\d+), *(\d+), *'(.*)'\." r"split\('\|'\), *(\d+), *(.*)\)\)" ) args = re . search ( argsregex , source , re . DOTALL ) . groups ( ) try : return args [ 0 ] , args [ 3 ] . split ( '|' ) , int ( args [ 1 ] ) , int ( args [ 2 ] ) except ValueError : raise UnpackingError ( 'Corrupted p.a.c.k.e.r. data.' )