PEP8'd content.py and subreddit.py
This commit is contained in:
@@ -17,11 +17,10 @@ from .curses_helpers import (Color, LoadScreen, add_line, get_arrow, get_gold,
|
||||
show_notification, prompt_input)
|
||||
|
||||
__all__ = ['history', 'SubredditController', 'SubredditPage']
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
history = load_history()
|
||||
|
||||
|
||||
@atexit.register
|
||||
def save_links():
|
||||
global history
|
||||
@@ -80,7 +79,7 @@ class SubredditPage(BasePage):
|
||||
try:
|
||||
self.content = SubredditContent.from_name(
|
||||
self.reddit, name, self.loader, query=query)
|
||||
except IndexError: # if there are no submissions
|
||||
except IndexError: # if there are no submissions
|
||||
show_notification(self.stdscr, ['No results found'])
|
||||
else:
|
||||
self.nav = Navigator(self.content.get)
|
||||
@@ -197,4 +196,4 @@ class SubredditPage(BasePage):
|
||||
if row in valid_rows:
|
||||
add_line(win, u'{author}'.format(**data), row, 1, curses.A_BOLD)
|
||||
add_line(win, u' {subreddit}'.format(**data), attr=Color.YELLOW)
|
||||
add_line(win, u' {flair}'.format(**data), attr=Color.RED)
|
||||
add_line(win, u' {flair}'.format(**data), attr=Color.RED)
|
||||
|
||||
Reference in New Issue
Block a user