[misc] 01/03: DRY a variable
Mattia Rizzolo
mattia at debian.org
Sun Mar 11 14:59:05 UTC 2018
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository misc.
commit 2e438706b44d088058cebe110cadb99bfb5f9780
Author: Mattia Rizzolo <mattia at debian.org>
Date: Sun Mar 11 15:54:17 2018 +0100
DRY a variable
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
rblib/yamlfiles.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/rblib/yamlfiles.py b/rblib/yamlfiles.py
index 5f0d7a2..86c5d43 100644
--- a/rblib/yamlfiles.py
+++ b/rblib/yamlfiles.py
@@ -33,11 +33,12 @@ def write_out(notes):
else:
out += "%s:\n" % pkg
try:
- if str(values['version']) in ('3.6e-1', '4.2e-4') or \
+ ver = values['version']
+ if ver in ('3.6e-1', '4.2e-4') or \
pkg == 'cdebconf-entropy':
- out += " version: !!str %s\n" % values['version']
+ out += " version: !!str %s\n" % ver
else:
- out += " version: %s\n" % values['version']
+ out += " version: %s\n" % ver
except KeyError:
pass
if 'comments' in values:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/misc.git
More information about the Reproducible-commits
mailing list