diff options
author | Guido Günther <agx@sigxcpu.org> | 2016-09-23 11:45:34 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2016-09-23 11:45:34 +0200 |
commit | ea62f77365332727a48cfc7a9fb1f787420de5c7 (patch) | |
tree | f3bbda23ac27187e8dc5b1552dbeed815ad228e1 /whatmaps/debianpkg.py | |
parent | 42ef43a811fc2931801f6d72faa0c0accf15beef (diff) |
whatmaps/debianpkg.py: flake8 clean
Diffstat (limited to 'whatmaps/debianpkg.py')
-rw-r--r-- | whatmaps/debianpkg.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/whatmaps/debianpkg.py b/whatmaps/debianpkg.py index 8a3349d..0192513 100644 --- a/whatmaps/debianpkg.py +++ b/whatmaps/debianpkg.py @@ -19,17 +19,18 @@ import re from . pkg import Pkg + class DebianPkg(Pkg): type = 'Debian' _init_script_re = re.compile('/etc/init.d/[\w\-\.]') - _list_contents = ['dpkg-query', '-L', '${pkg_name}' ] + _list_contents = ['dpkg-query', '-L', '${pkg_name}'] def __init__(self, name): Pkg.__init__(self, name) @property def services(self): - if self._services != None: + if self._services is not None: return self._services self._services = [] @@ -39,4 +40,3 @@ class DebianPkg(Pkg): if self._init_script_re.match(line): self._services.append(os.path.basename(line.strip())) return self._services - |