<s> from lib . action import TravisCI <EOL> class ListHooksAction ( TravisCI ) : <EOL> def run ( self ) : <EOL> """<STR_LIT>""" <EOL> path = '<STR_LIT>' <EOL> response = self . _perform_request ( path , method = '<STR_LIT:GET>' , requires_auth = True ) <EOL> data = response . json ( ) <EOL> hooks = { } <EOL> for hook in data [ '<STR_LIT>' ] : <EOL> hooks [ hook [ '<STR_LIT:id>' ] ] = [ hook [ '<STR_LIT>' ] , hook [ '<STR_LIT:name>' ] ] <EOL> return hooks </s>
