From fa0dcf544995933fdb4f67d650ade88b9b4e5df4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Mon, 7 Dec 2015 13:58:29 +0100 Subject: [PATCH] lint: fix issue found by older version of pyflakes --- fdroidserver/lint.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index 977efb89..f09ac007 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -148,14 +148,13 @@ def check_ucm_tags(app): def check_char_limits(app): limits = config['char_limits'] - summ_chars = len(app.Summary) - if summ_chars > limits['Summary']: + if len(app.Summary) > limits['Summary']: yield "Summary of length %s is over the %i char limit" % ( - summ_chars, limits['Summary']) + len(app.Summary), limits['Summary']) if len(app.Description) > limits['Description']: yield "Description of length %s is over the %i char limit" % ( - desc_charcount, limits['Description']) + len(app.Description), limits['Description']) def check_old_links(app): -- 2.30.2