From 2ed08b5bc2ccd1724a680f7e0f85ec4520b77365 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 14 Mar 2017 20:07:53 +0000 Subject: [PATCH] Actually fix lint --- ymd/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ymd/main.py b/ymd/main.py index b6e0436..33d6d97 100644 --- a/ymd/main.py +++ b/ymd/main.py @@ -10,14 +10,14 @@ def parse_item(item, h): item_type = type(item) if item_type is list: if len(item) == 1: - return parse_item(item[0], h+1) + return parse_item(item[0], h + 1) if len(item) == 0: return '' - return parse_item('\n'.join(['- ' + str(sub_item) for sub_item in item]), h+1) + return parse_item('\n'.join(['- ' + str(sub_item) for sub_item in item]), h + 1) if item_type is dict: return { - "{1}".format(h, key): parse_item(value, h+1) for key, value in item.items() - } + "{1}".format(h, key): parse_item(value, h + 1) for key, value in item.items() + } if item_type in [int, float]: return item return markdown.markdown(str(item))