Commit 31d094b5 by stv

Fix PEP8: E711 comparison to None

should be 'if cond is None:'
parent 74f61875
...@@ -123,7 +123,7 @@ def _filter_unstarted_categories(category_map): ...@@ -123,7 +123,7 @@ def _filter_unstarted_categories(category_map):
def _sort_map_entries(category_map, sort_alpha): def _sort_map_entries(category_map, sort_alpha):
things = [] things = []
for title, entry in category_map["entries"].items(): for title, entry in category_map["entries"].items():
if entry["sort_key"] == None and sort_alpha: if entry["sort_key"] is None and sort_alpha:
entry["sort_key"] = title entry["sort_key"] = title
things.append((title, entry)) things.append((title, entry))
for title, category in category_map["subcategories"].items(): for title, category in category_map["subcategories"].items():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment