chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5541cb8
)
lint: fix issue found by older version of pyflakes
author
Daniel Martí
<mvdan@mvdan.cc>
Mon, 7 Dec 2015 12:58:29 +0000
(13:58 +0100)
committer
Daniel Martí
<mvdan@mvdan.cc>
Mon, 7 Dec 2015 12:58:29 +0000
(13:58 +0100)
fdroidserver/lint.py
patch
|
blob
|
history
diff --git
a/fdroidserver/lint.py
b/fdroidserver/lint.py
index 977efb89aba499599fbc4524517857b36447cfd7..f09ac007db563d48c4ccf91673e46f1aeab89aaf 100644
(file)
--- 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']
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" % (
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" % (
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):
def check_old_links(app):