def yaml(self):
        return yaml.dump(self.serialized, default_flow_style=False,
                         encoding=None)
def _compileddirpats(self):
        pat, matchfunc = _buildregexmatch(
            [("glob", p, "") for p in self._globdirpats], "$"
        )
        return matchfunc