flake8
This commit is contained in:
parent
8bc1c1b466
commit
132a734347
1 changed files with 11 additions and 7 deletions
|
|
@ -86,13 +86,16 @@ def _initValues(environ, title='Build System Info', pageID='summary'):
|
||||||
values['localbottom'] = ''
|
values['localbottom'] = ''
|
||||||
localnavpath = themePath('extra-nav.html', local=True)
|
localnavpath = themePath('extra-nav.html', local=True)
|
||||||
if os.path.exists(localnavpath):
|
if os.path.exists(localnavpath):
|
||||||
values['localnav'] = SafeValue("".join(open(localnavpath, 'rt', encoding='utf-8').readlines()))
|
values['localnav'] = SafeValue(
|
||||||
|
"".join(open(localnavpath, 'rt', encoding='utf-8').readlines()))
|
||||||
localfooterpath = themePath("extra-footer.html", local=True)
|
localfooterpath = themePath("extra-footer.html", local=True)
|
||||||
if os.path.exists(localfooterpath):
|
if os.path.exists(localfooterpath):
|
||||||
values['localfooter'] = SafeValue("".join(open(localfooterpath, 'rt', encoding='utf-8').readlines()))
|
values['localfooter'] = SafeValue(
|
||||||
|
"".join(open(localfooterpath, 'rt', encoding='utf-8').readlines()))
|
||||||
localbottompath = themePath("extra-bottom.html", local=True)
|
localbottompath = themePath("extra-bottom.html", local=True)
|
||||||
if os.path.exists(localbottompath):
|
if os.path.exists(localbottompath):
|
||||||
values['localbottom'] = SafeValue("".join(open(localbottompath, 'rt', encoding='utf-8').readlines()))
|
values['localbottom'] = SafeValue(
|
||||||
|
"".join(open(localbottompath, 'rt', encoding='utf-8').readlines()))
|
||||||
|
|
||||||
environ['koji.values'] = values
|
environ['koji.values'] = values
|
||||||
|
|
||||||
|
|
@ -274,6 +277,7 @@ class FieldCompat:
|
||||||
def __init__(self, value):
|
def __init__(self, value):
|
||||||
self.value = value
|
self.value = value
|
||||||
|
|
||||||
|
|
||||||
# compat with jinja 2.x
|
# compat with jinja 2.x
|
||||||
try:
|
try:
|
||||||
pass_context = jinja2.pass_context
|
pass_context = jinja2.pass_context
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue