def _load_juju_ignore(self): ignore = JujuIgnore(default_juju_ignore) path = self.charmdir / '.jujuignore' if path.exists(): with path.open('r', encoding='utf-8') as ignores: ignore.extend_patterns(ignores) return ignore
def _load_juju_ignore(self): ignore = JujuIgnore(default_juju_ignore) path = self.charmdir / ".jujuignore" if path.exists(): with path.open("r", encoding="utf-8") as ignores: ignore.extend_patterns(ignores) return ignore