PEP 8 (I'm bored): reddit
This commit is contained in:
parent
7b12be077d
commit
d782621696
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user