Fixed a few imports and docs.
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 = """
|
||||
|
||||
@@ -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']
|
||||
|
||||
|
||||
@@ -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']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user