def make_query_context(type, info):
 if (type == 'table'):
  return ('%s:%s' % (type, info))
 elif (type == 'design'):
  return ('%s:%s' % (type, int(info)))
 LOG.error(('Invalid query context type: %s' % (type,)))
 return ''

def make_query_context ( type , info ) : if ( type == 'table' ) : return ( '%s:%s' % ( type , info ) ) elif ( type == 'design' ) : return ( '%s:%s' % ( type , int ( info ) ) ) LOG . error ( ( 'Invalid query context type: %s' % ( type , ) ) ) return ''
type is one of "table" and "design" .