Fixed a few imports and docs.

This commit is contained in:
Michael Lazar
2015-03-20 02:25:23 -07:00
parent 7d9c8ad0d4
commit 688289f00c
5 changed files with 16 additions and 16 deletions

View File

@@ -45,8 +45,8 @@ def command_line():
parser.add_argument('-l', dest='link', help='full link to a submission')
parser.add_argument('--unicode', action='store_true',
help='enable unicode (experimental)')
parser.add_argument('--log', action='store',
help='Log all HTTP requests to the given file')
parser.add_argument('--log', metavar='FILE', action='store',
help='Log HTTP requests')
group = parser.add_argument_group('authentication (optional)', AUTH)
group.add_argument('-u', dest='username', help='reddit username')
@@ -102,4 +102,4 @@ def main():
except KeyboardInterrupt:
return
sys.exit(main())
sys.exit(main())

View File

@@ -3,6 +3,7 @@ import time
import threading
import curses
from curses import textpad, ascii
from contextlib import contextmanager
from .docs import HELP
from .helpers import strip_textpad
@@ -272,4 +273,4 @@ def curses_session():
stdscr.keypad(0)
curses.echo()
curses.nocbreak()
curses.endwin()
curses.endwin()

View File

@@ -11,10 +11,9 @@ Reddit Terminal Viewer is a lightweight browser for www.reddit.com built into a
terminal window.
"""
AUTH = """
Authenticating is required to vote and leave comments. For added security, it
is recommended that only you only provide a username. There will be an
additional prompt for the password if it is not provided.
AUTH = """\
Authenticating is required to vote and leave comments. If only a username is
given, the program will display a secure prompt to enter a password.
"""
CONTROLS = """
@@ -43,4 +42,4 @@ Subreddit Mode
Submission Mode
`LEFT` or `h` : Return to subreddit mode
`RIGHT` or `l` : Fold the selected comment, or load additional comments
"""
"""

View File

@@ -6,9 +6,9 @@ import praw.errors
from .content import SubmissionContent
from .page import BasePage
from .workers import LoadScreen, open_browser
from .curses_helpers import (BULLET, UARROW, DARROW, Color, show_help,
text_input)
from .helpers import clean, open_browser
from .curses_helpers import (BULLET, UARROW, DARROW, Color, LoadScreen,
show_help, text_input)
__all__ = ['SubmissionPage']
@@ -280,4 +280,4 @@ class SubmissionPage(BasePage):
display_message(self.stdscr, [e.message])
else:
time.sleep(0.5)
self.refresh_content()
self.refresh_content()

View File

@@ -7,9 +7,9 @@ from .exceptions import SubredditError
from .page import BasePage
from .submission import SubmissionPage
from .content import SubredditContent
from .workers import LoadScreen, open_browser
from .curses_helpers import (BULLET, UARROW, DARROW, Color, text_input,
show_notification, show_help)
from .helpers import clean, open_browser
from .curses_helpers import (BULLET, UARROW, DARROW, Color, LoadScreen,
text_input, show_notification, show_help)
__all__ = ['opened_links', 'SubredditPage']