def _restore_int(name, value):
 if ((name == 'http01_port') and (value == 'None')):
  logger.info('updating legacy http01_port value')
  return cli.flag_default('http01_port')
 try:
  return int(value)
 except ValueError:
  raise errors.Error('Expected a numeric value for {0}'.format(name))

def _restore_int ( name , value ) : if ( ( name == 'http01_port' ) and ( value == 'None' ) ) : logger . info ( 'updating legacy http01_port value' ) return cli . flag_default ( 'http01_port' ) try : return int ( value ) except ValueError : raise errors . Error ( 'Expected a numeric value for {0}' . format ( name ) )
restores an integer key-value pair from a renewal config file .