From 0f7edd60e67d32438a8be42002faacde4e4a7649 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Fri, 9 Aug 2013 16:45:45 -0400 Subject: testsuite: fixed most pylint complaints --- src/lib/Bcfg2/Server/Lint/MergeFiles.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/Bcfg2/Server/Lint/MergeFiles.py') diff --git a/src/lib/Bcfg2/Server/Lint/MergeFiles.py b/src/lib/Bcfg2/Server/Lint/MergeFiles.py index dff95fbf3..972475d91 100644 --- a/src/lib/Bcfg2/Server/Lint/MergeFiles.py +++ b/src/lib/Bcfg2/Server/Lint/MergeFiles.py @@ -11,10 +11,10 @@ from Bcfg2.Server.Plugins.Cfg import CfgGenerator def threshold(val): """ Option type processor to accept either a percentage (e.g., "threshold=75") or a ratio (e.g., "threshold=.75") """ - threshold = float(val) - if threshold > 1: - threshold /= 100 - return threshold + rv = float(val) + if rv > 1: + rv /= 100 + return rv class MergeFiles(Bcfg2.Server.Lint.ServerPlugin): -- cgit v1.2.3-1-g7c22