fix PEP8 "E302 expected 1 blank lines, found 0"

This commit is contained in:
Hans-Christoph Steiner 2014-05-01 23:41:44 -04:00
parent 3f4f7a544b
commit 69989d4758
2 changed files with 7 additions and 0 deletions

View file

@ -218,8 +218,10 @@ class DescriptionFormatter:
text_wiki = ''
text_html = ''
linkResolver = None
def __init__(self, linkres):
self.linkResolver = linkres
def endcur(self, notstates=None):
if notstates and self.state in notstates:
return
@ -229,13 +231,16 @@ class DescriptionFormatter:
self.endul()
elif self.state == self.stOL:
self.endol()
def endpara(self):
self.text_plain += '\n'
self.text_html += '</p>'
self.state = self.stNONE
def endul(self):
self.text_html += '</ul>'
self.state = self.stNONE
def endol(self):
self.text_html += '</ol>'
self.state = self.stNONE

View file

@ -610,6 +610,7 @@ def make_index(apps, apks, repodir, archive, categories):
el = doc.createElement(name)
el.appendChild(doc.createTextNode(value))
parent.appendChild(el)
def addElementCDATA(name, value, doc, parent):
el = doc.createElement(name)
el.appendChild(doc.createCDATASection(value))
@ -696,6 +697,7 @@ def make_index(apps, apks, repodir, archive, categories):
addElement('summary', app['Summary'], doc, apel)
if app['icon']:
addElement('icon', app['icon'], doc, apel)
def linkres(link):
for app in apps:
if app['id'] == link: