From 8533d9d8c5677235e1737686473524f5484b34a2 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Nov 12 2011 19:42:49 +0000 Subject: pylint on __init__.py --- diff --git a/r2spec/__init__.py b/r2spec/__init__.py index b16fddd..e1eced0 100644 --- a/r2spec/__init__.py +++ b/r2spec/__init__.py @@ -17,6 +17,9 @@ # (C) 2011 - Pierre-Yves Chibon +""" Miscellaneous functions used in R2spec. """ + + import logging from subprocess import Popen, PIPE @@ -29,14 +32,13 @@ def get_logger(): return LOG -def get_rpm_tag(tag, package=None): - """" Reads the .rpmmacros and set the values accordingly - Code from José Matos. - :arg tag, the rpm tag to find the value of - :arg package, name of the package - """ - dirname = Popen(["rpm", "-E", '%' + tag], stdout=PIPE).stdout.read()[:-1] - return dirname +def get_rpm_tag(tag): + """" Reads the .rpmmacros and set the values accordingly + Code from José Matos. + :arg tag, the rpm tag to find the value of + """ + dirname = Popen(["rpm", "-E", '%' + tag], stdout=PIPE).stdout.read()[:-1] + return dirname class R2specError: