<s> import logging <EOL> from lintreview . review import IssueComment <EOL> from lintreview . tools import Tool <EOL> from lintreview . tools import run_command <EOL> from lintreview . utils import in_path <EOL> log = logging . getLogger ( __name__ ) <EOL> class Gpg ( Tool ) : <EOL> name = '<STR_LIT>' <EOL> def check_dependencies ( self ) : <EOL> """<STR_LIT>""" <EOL> return in_path ( '<STR_LIT>' ) <EOL> def execute_commits ( self , commits ) : <EOL> """<STR_LIT>""" <EOL> cmd = "<STR_LIT>" <EOL> cmd += "<STR_LIT>" <EOL> try : <EOL> run_command ( cmd , split = False , shell = True , <EOL> ignore_error = False , cwd = self . base_path ) <EOL> log . debug ( '<STR_LIT>' ) <EOL> return False <EOL> except Exception as e : <EOL> log . debug ( "<STR_LIT>" % str ( e ) ) <EOL> body = '<STR_LIT>' <EOL> self . problems . add ( IssueComment ( body ) ) </s>
