commit:     ca174fbdc542a10c4bd69ee15f705ee856789691
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  8 20:24:03 2017 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Tue Aug  8 20:39:00 2017 +0000
URL:        https://gitweb.gentoo.org/proj/javatoolkit.git/commit/?id=ca174fbd

format strings in a saner way

 src/py/javatoolkit/cvv.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/py/javatoolkit/cvv.py b/src/py/javatoolkit/cvv.py
index b5f817e..6ae2501 100644
--- a/src/py/javatoolkit/cvv.py
+++ b/src/py/javatoolkit/cvv.py
@@ -16,9 +16,9 @@ class CVVMagic:
 
     def add(self, version, jar, file):
         if version <= self.target:
-            self.good.append(("1."+str(version), jar, file))
+            self.good.append(("1.%s" % (version), jar, file))
         else:
-            self.bad.append(("1."+str(version), jar, file))
+            self.bad.append(("1.%s" % (version), jar, file))
 
     def do_class(self,filename):
         classFile = file(filename,"rb")

Reply via email to