Drop unnecessary delete statements and fix the code to properly remove
the entry in _remove_entry().
Reported-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
self._parse_body(data)
def _remove_entry(self, config : str):
- if 'policy' in self.config[config]:
- del self.config[config]['policy']
- if 'note' in self.config[config]:
- del self.config[config]['note']
- if not self.config[config]:
+ if self.config[config]:
del self.config[config]
def remove(self, config : str, arch: str = None, flavour: str = None):