PEP 8 (I'm bored): reddit

This commit is contained in:
enkore 2014-10-14 16:43:02 +02:00
parent 7b12be077d
commit d782621696

View File

@ -7,7 +7,6 @@ import praw
class Reddit(IntervalModule): class Reddit(IntervalModule):
""" """
This module fetches and displays posts and/or user mail/messages from This module fetches and displays posts and/or user mail/messages from
reddit.com. Left-clicking on the display text opens the permalink/comments reddit.com. Left-clicking on the display text opens the permalink/comments
@ -125,7 +124,7 @@ class Reddit(IntervalModule):
color = self.color color = self.color
if len(fdict["submission_title"]) > self.title_maxlen: if len(fdict["submission_title"]) > self.title_maxlen:
title = fdict["submission_title"][:(self.title_maxlen-3)]+"..." title = fdict["submission_title"][:(self.title_maxlen - 3)] + "..."
fdict["submission_title"] = title fdict["submission_title"] = title
full_text = self.format.format(**fdict) full_text = self.format.format(**fdict)