[Pcsclite-git-commit] [website] 06/06: matrix.py: use %d to format a number
Ludovic Rousseau
rousseau at moszumanska.debian.org
Wed Jun 10 15:43:09 UTC 2015
This is an automated email from the git hooks/post-receive script.
rousseau pushed a commit to branch master
in repository website.
commit b3ba3a1b4e6582a25e795469ea543f483f7967fe
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date: Wed Jun 10 17:35:26 2015 +0200
matrix.py: use %d to format a number
%s works to format a number but %d should be better at detecting value
errors.
---
matrix.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/matrix.py b/matrix.py
index bf36b44..77573f8 100755
--- a/matrix.py
+++ b/matrix.py
@@ -359,7 +359,7 @@ def generate_page(section, title, comment, readers):
for reader in sorted(manufacturer_readers[manufacturer]):
image = "img/" + readers[reader].get('image', "no_image.png")
im = Image.open("ccid/" + image)
- resolution = "width:%spx;height:%dpx" % im.size
+ resolution = "width:%dpx;height:%dpx" % im.size
note_layer = main_layer.open_layer('reader',
manufacturer=manufacturer,
product=readers[reader]['iProduct'],
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/website.git
More information about the Pcsclite-cvs-commit
mailing list