From eb3bc11820c454e3565687a04e2e5f7e212bb759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Fri, 23 Sep 2016 11:43:41 +0200 Subject: whatmaps/redhatdistro.py: flake8 clean --- whatmaps/redhatdistro.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'whatmaps') 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[\w\-\+]+)-(?P[\w\.]+)' - '-(?P[\w\.]+)\.(?P.+)') + '-(?P[\w\.]+)\.(?P.+)') @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' - -- cgit v1.2.1