Skip to content

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
tino097 committed Oct 10, 2017
1 parent babd73e commit 2ac8231
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions ckan/lib/helpers.py
Expand Up @@ -692,9 +692,9 @@ def _link_active(kwargs):


def _link_active_pylons(kwargs):
highlight_actions = kwargs.get('highlight_actions',
kwargs.get('action', '')).split()
return (c.controller == kwargs.get('controller')
highlight_actions = kwargs.get('highlight_actions',
kwargs.get('action', '')).split()
return (c.controller == kwargs.get('controller')
and c.action in highlight_actions)


Expand Down Expand Up @@ -2550,11 +2550,9 @@ def mail_to(email_address, name):
def radio(selected, id, checked):
if checked:
return literal((u'<input checked="checked" id="%s_%s" name="%s" \
value="%s" type="radio">'
) % (selected, id, selected, id))
value="%s" type="radio">') % (selected, id, selected, id))
return literal(('<input id="%s_%s" name="%s" \
value="%s" type="radio">'
) % (selected, id, selected, id))
value="%s" type="radio">') % (selected, id, selected, id))


core_helper(flash, name='flash')
Expand Down

0 comments on commit 2ac8231

Please sign in to comment.