Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mattia Rizzolo
jenkins.d.n
Commits
5e8e1d78
Verified
Commit
5e8e1d78
authored
Dec 02, 2019
by
Mattia Rizzolo
Browse files
rblib: pep8-f
Signed-off-by:
Mattia Rizzolo
<
mattia@debian.org
>
parent
6d8111ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/rblib/html.py
View file @
5e8e1d78
...
...
@@ -25,7 +25,7 @@ tab = ' '
# take a SHA1 of the css page for style version
_hasher
=
hashlib
.
sha1
()
with
open
(
REPRODUCIBLE_STYLES
,
'rb'
)
as
f
:
_hasher
.
update
(
f
.
read
())
_hasher
.
update
(
f
.
read
())
REPRODUCIBLE_STYLE_SHA1
=
_hasher
.
hexdigest
()
# Templates used for creating package pages
...
...
@@ -73,8 +73,8 @@ def _gen_suite_arch_nav_context(suite, arch, suite_arch_nav_template=None,
's'
:
s
,
'class'
:
'current'
if
s
==
suite
else
''
,
'uri'
:
_renderer
.
render
(
suite_arch_nav_template
,
{
'distro'
:
conf_distro
[
'distro_root'
],
'suite'
:
s
,
'arch'
:
arch
})
{
'distro'
:
conf_distro
[
'distro_root'
],
'suite'
:
s
,
'arch'
:
arch
})
if
include_suite
else
''
,
})
...
...
@@ -85,8 +85,8 @@ def _gen_suite_arch_nav_context(suite, arch, suite_arch_nav_template=None,
'a'
:
a
,
'class'
:
'current'
if
a
==
arch
else
''
,
'uri'
:
_renderer
.
render
(
suite_arch_nav_template
,
{
'distro'
:
conf_distro
[
'distro_root'
],
'suite'
:
suite
,
'arch'
:
a
}),
{
'distro'
:
conf_distro
[
'distro_root'
],
'suite'
:
suite
,
'arch'
:
a
}),
})
return
(
suite_list
,
arch_list
)
...
...
@@ -96,8 +96,9 @@ def create_main_navigation(suite=defaultsuite, arch=defaultarch,
displayed_page
=
None
,
suite_arch_nav_template
=
None
,
ignore_experimental
=
False
,
no_suite
=
None
,
no_arch
=
None
):
suite_list
,
arch_list
=
_gen_suite_arch_nav_context
(
suite
,
arch
,
suite_arch_nav_template
,
ignore_experimental
,
no_suite
,
no_arch
)
suite_list
,
arch_list
=
_gen_suite_arch_nav_context
(
suite
,
arch
,
suite_arch_nav_template
,
ignore_experimental
,
no_suite
,
no_arch
)
context
=
{
'suite'
:
suite
,
'arch'
:
arch
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment