summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-09-23 11:43:41 +0200
committerGuido Günther <agx@sigxcpu.org>2016-09-23 11:43:41 +0200
commiteb3bc11820c454e3565687a04e2e5f7e212bb759 (patch)
treeeac9d948ca3f8eace8955c1cc6f89e4c1ad22697
parent91100e0a2927a58dbd6fa8723fbe6741bc06cf23 (diff)
whatmaps/redhatdistro.py: flake8 clean
-rw-r--r--whatmaps/redhatdistro.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/whatmaps/redhatdistro.py b/whatmaps/redhatdistro.py
index 0427c30..4b17f3c 100644
--- a/whatmaps/redhatdistro.py
+++ b/whatmaps/redhatdistro.py
@@ -21,10 +21,11 @@ import subprocess
from . distro import Distro
from . rpmpkg import RpmPkg
+
class RedHatDistro(Distro):
"RPM based distribution"""
_pkg_re = re.compile(r'(?P<pkg>[\w\-\+]+)-(?P<ver>[\w\.]+)'
- '-(?P<rel>[\w\.]+)\.(?P<arch>.+)')
+ '-(?P<rel>[\w\.]+)\.(?P<arch>.+)')
@classmethod
def pkg(klass, name):
@@ -33,8 +34,8 @@ class RedHatDistro(Distro):
@classmethod
def pkg_by_file(klass, path):
find_file = subprocess.Popen(['rpm', '-qf', path],
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE)
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE)
output = find_file.communicate()[0]
if find_file.returncode:
return None
@@ -52,4 +53,3 @@ class RedHatDistro(Distro):
class FedoraDistro(RedHatDistro):
id = 'Fedora'
-