PEP8'd helpers, history, page.py

This commit is contained in:
Lawrence Vanderpool
2015-06-08 06:46:27 -04:00
parent 4cd5bc0ef9
commit 764684eb53
3 changed files with 7 additions and 1 deletions

View File

@@ -15,9 +15,9 @@ from .curses_helpers import (Color, show_notification, show_help, text_input,
from .docs import COMMENT_EDIT_FILE, SUBMISSION_FILE
__all__ = ['Navigator', 'BaseController', 'BasePage']
_logger = logging.getLogger(__name__)
class Navigator(object):
"""
Handles math behind cursor movement and screen paging.
@@ -155,6 +155,7 @@ class Navigator(object):
else:
return True
class SafeCaller(object):
def __init__(self, window):
@@ -186,6 +187,7 @@ class SafeCaller(object):
_logger.exception(e)
return True
class BaseController(object):
"""
Event handler for triggering functions with curses keypresses.