PEP8 fixes.

This commit is contained in:
Michael Lazar
2015-12-03 00:20:20 -08:00
parent a7b789bfd9
commit 5a0932f6d3
11 changed files with 10 additions and 12 deletions

View File

@@ -16,6 +16,7 @@ from .objects import curses_session
from .subreddit import SubredditPage
from .__version__ import __version__
_logger = logging.getLogger(__name__)
# Pycharm debugging note:

View File

@@ -4,10 +4,12 @@ from __future__ import unicode_literals
import os
import codecs
import argparse
from six.moves import configparser
from . import docs, __version__
HOME = os.path.expanduser('~')
PACKAGE = os.path.dirname(__file__)
XDG_HOME = os.getenv('XDG_CONFIG_HOME', os.path.join(HOME, '.config'))

View File

@@ -17,6 +17,7 @@ import requests
from . import exceptions
_logger = logging.getLogger(__name__)

View File

@@ -4,8 +4,6 @@ from __future__ import unicode_literals
import time
import curses
import six
from . import docs
from .content import SubredditContent
from .page import Page, PageController, logged_in

View File

@@ -318,8 +318,7 @@ class Terminal(object):
with codecs.open(fp.name, 'r', 'utf-8') as fp2:
text = ''.join(line for line in fp2 if not line.startswith('#'))
text = text.rstrip()
return text
return text
def text_input(self, window, allow_resize=False):
"""