From 0457f07dbb3ab26ad0771493db6ed6862b4cf699 Mon Sep 17 00:00:00 2001 From: David Trail Date: Sun, 18 Oct 2015 15:58:05 +0100 Subject: [PATCH] pep8 compliance --- shreddit.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shreddit.py b/shreddit.py index bf2924e..9539345 100755 --- a/shreddit.py +++ b/shreddit.py @@ -32,6 +32,7 @@ except ImportError: words = fh.read().splitlines() fh.close() shuffle(words) + def get_sentence(): return ' '.join(words[:randint(50, 150)]) @@ -112,6 +113,7 @@ if whitelist: subs=', '.join(whitelist)) ) + def get_things(after=None): limit = None if item == "comments": @@ -123,6 +125,7 @@ def get_things(after=None): else: raise Exception("Your deletion section is wrong") + def remove_things(things): removal_count = 0 for thing in things: @@ -197,4 +200,3 @@ count = remove_things(things) while count != 0: things = get_things() count = remove_things(things) -