Skip to content

Commit

Permalink
Flake8.
Browse files Browse the repository at this point in the history
  • Loading branch information
sallner committed Oct 2, 2018
1 parent 79cb02e commit 0a8c451
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/TreeDisplay/TreeTag.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def tpRenderTABLE(self, id, root_url, url, state, substate, diff, data,
ptreeData['tree-item-url'] = url
ptreeData['tree-level'] = level
ptreeData['tree-item-expanded'] = 0

output = data.append

items = None
Expand Down Expand Up @@ -712,7 +712,7 @@ def tpValuesIds(self, get_items, args,
try:
if get_items(item):
id = extract_id(item, args['id'])

e = tpValuesIds(item, get_items, args)
if e:
id = [id, e]
Expand All @@ -725,6 +725,7 @@ def tpValuesIds(self, get_items, args,
pass
return r


def extract_id(item, idattr):
if hasattr(item, idattr):
return try_call_attr(item, idattr)
Expand Down

0 comments on commit 0a8c451

Please sign in to comment.