mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
8bd6cc840c
commit
8020f489ca
@ -26,7 +26,7 @@ class Template(object):
|
||||
self.html_lang = lang
|
||||
|
||||
def generate(self, *args, **kwargs):
|
||||
if not kwargs.has_key('style'):
|
||||
if 'style' not in kwargs:
|
||||
kwargs['style'] = ''
|
||||
for key in kwargs.keys():
|
||||
if isbytestring(kwargs[key]):
|
||||
@ -326,7 +326,6 @@ class TouchscreenFeedTemplate(Template):
|
||||
bottom_navbar = copy.copy(navbar_t)
|
||||
# print "\n%s\n" % etree.tostring(navbar_t, pretty_print=True)
|
||||
|
||||
|
||||
# Build the page
|
||||
head = HEAD(TITLE(feed.title))
|
||||
if style:
|
||||
@ -414,3 +413,4 @@ class TouchscreenNavBarTemplate(Template):
|
||||
# print "\n%s\n" % etree.tostring(navbar, pretty_print=True)
|
||||
|
||||
self.root = HTML(head, BODY(navbar))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user