<s> from ... gafferd . util import confirm <EOL> from ... httpclient . base import GafferNotFound <EOL> from ... httpclient . keys import Keys <EOL> from . base import Command <EOL> class KeyDelete ( Command ) : <EOL> """<STR_LIT>""" <EOL> name = "<STR_LIT>" <EOL> short_descr = "<STR_LIT>" <EOL> def run ( self , config , args ) : <EOL> server = config . get ( '<STR_LIT>' ) <EOL> try : <EOL> if not confirm ( "<STR_LIT>" % args [ '<STR_LIT>' ] ) : <EOL> return <EOL> except KeyboardInterrupt : <EOL> return <EOL> keys = Keys ( server ) <EOL> try : <EOL> key = keys . delete_key ( args [ '<STR_LIT>' ] ) <EOL> except GafferNotFound : <EOL> raise RuntimeError ( "<STR_LIT>" % args [ '<STR_LIT>' ] ) <EOL> print ( "<STR_LIT>" % args [ '<STR_LIT>' ] ) </s>
