<s> from debile . slave . wrappers . pep8 import parse_pep8 <EOL> from debile . slave . utils import cd <EOL> from debile . utils . commands import run_command <EOL> def pep8 ( dsc , analysis ) : <EOL> run_command ( [ "<STR_LIT>" , "<STR_LIT>" , dsc , "<STR_LIT:source>" ] ) <EOL> with cd ( '<STR_LIT:source>' ) : <EOL> out , err , ret = run_command ( [ '<STR_LIT>' , '<STR_LIT:.>' ] ) <EOL> failed = ret != <NUM_LIT:0> <EOL> for issue in parse_pep8 ( out . splitlines ( ) ) : <EOL> analysis . results . append ( issue ) <EOL> return ( analysis , out , failed , None , None ) <EOL> def version ( ) : <EOL> out , err , ret = run_command ( [ <EOL> '<STR_LIT>' , '<STR_LIT>' <EOL> ] ) <EOL> if ret != <NUM_LIT:0> : <EOL> raise Exception ( "<STR_LIT>" ) <EOL> return ( '<STR_LIT>' , out . strip ( ) ) </s>
