mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
3bb39cb88d
commit
8d42c86479
@ -854,6 +854,7 @@ def evaluate(book, ctx):
|
||||
return ','.join(list(ctx.helper_function(tags)))
|
||||
'''
|
||||
from calibre.utils.formatter import PythonTemplateContext
|
||||
|
||||
class CustomContext(PythonTemplateContext):
|
||||
def helper_function(self, arg):
|
||||
s = set(arg)
|
||||
|
@ -208,7 +208,7 @@ class TemplateHighlighter(QSyntaxHighlighter):
|
||||
# we avoid thinking a # inside a string starts a comment.
|
||||
t = re.sub(self.stringRe, self.replace_strings_with_dash, text)
|
||||
sharp_pos = t.find('#')
|
||||
if sharp_pos >= 0: # Do we still have a #?
|
||||
if sharp_pos >= 0: # Do we still have a #?
|
||||
self.setFormat(sharp_pos, len(text), self.Formats["comment"])
|
||||
|
||||
self.setCurrentBlockState(NORMAL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user