'Return a list of subformats where name matches ``pattern`` using
fnmatch.'

def _select_subfmts(self, pattern):

    fnmatchcase = fnmatch.fnmatchcase
    subfmts = [x for x in self.subfmts if fnmatchcase(x[0], pattern)]
    if (len(subfmts) == 0):
        raise ValueError(u'No    subformats    match    {0}'.format(pattern))
    return subfmts
