Re-naming

This commit is contained in:
Michael Lazar
2017-09-13 02:16:17 -04:00
parent 5908d932f0
commit 5e82811918
3 changed files with 12 additions and 7 deletions

View File

@@ -36,7 +36,7 @@ from . import packages
from .packages import praw
from .config import Config, copy_default_config, copy_default_mailcap
from .theme import Theme
from .oauth import OAuthHelper, OAuthRateLimitHandler
from .oauth import OAuthHelper, OAuthRateLimiter
from .terminal import Terminal
from .objects import curses_session, patch_webbrowser
from .subreddit_page import SubredditPage
@@ -174,11 +174,10 @@ def main():
term = Terminal(stdscr, config, theme)
with term.loader('Initializing', catch_exception=False):
handler = OAuthRateLimitHandler()
reddit = praw.Reddit(user_agent=user_agent,
decode_html_entities=False,
disable_update_check=True,
handler=handler)
handler=OAuthRateLimiter())
# Authorize on launch if the refresh token is present
oauth = OAuthHelper(reddit, term, config)