def print_binutils_instructions(util, context):
 instructions = 'https://docs.pwntools.com/en/stable/install/binutils.html'
 binutils_arch = {'amd64': 'x86_64', 'arm': 'armeabi', 'thumb': 'armeabi'}.get(context.arch, context.arch)
 packages = dpkg_search_for_binutils(binutils_arch, util)
 if packages:
  instructions = ('$ sudo apt-get install %s' % packages[0])
 log.error(('\nCould not find %(util)r installed for %(context)s\nTry installing binutils for this architecture:\n%(instructions)s\n'.strip() % locals()))

def print_binutils_instructions ( util , context ) : instructions = 'https://docs.pwntools.com/en/stable/install/binutils.html' binutils_arch = { 'amd64' : 'x86_64' , 'arm' : 'armeabi' , 'thumb' : 'armeabi' } . get ( context . arch , context . arch ) packages = dpkg_search_for_binutils ( binutils_arch , util ) if packages : instructions = ( '$ sudo apt-get install %s' % packages [ 0 ] ) log . error ( ( '\nCould not find %(util)r installed for %(context)s\nTry installing binutils for this architecture:\n%(instructions)s\n' . strip ( ) % locals ( ) ) )
on failure to find a binutils utility .