A couple of pylint changes
This commit is contained in:
@@ -115,10 +115,10 @@ def main():
|
||||
# Check the praw version
|
||||
if packages.__praw_bundled__:
|
||||
_logger.info('Using packaged PRAW distribution, '
|
||||
'commit %s' % packages.__praw_hash__)
|
||||
'commit %s', packages.__praw_hash__)
|
||||
else:
|
||||
_logger.info('Packaged PRAW not found, falling back to system '
|
||||
'installed version %s' % praw.__version__)
|
||||
'installed version %s', praw.__version__)
|
||||
|
||||
# Construct the reddit user agent
|
||||
user_agent = docs.AGENT.format(version=__version__)
|
||||
|
||||
@@ -341,7 +341,7 @@ class SubmissionContent(Content):
|
||||
url = url.replace('https://np.', 'https://www.')
|
||||
submission = reddit.get_submission(url, comment_sort=order)
|
||||
return cls(submission, loader, indent_size, max_indent_level, order,
|
||||
max_comment_cols)
|
||||
max_comment_cols)
|
||||
|
||||
@property
|
||||
def range(self):
|
||||
|
||||
@@ -58,7 +58,6 @@ def curses_session():
|
||||
curses.start_color()
|
||||
except:
|
||||
_logger.warning('Curses failed to initialize color support')
|
||||
pass
|
||||
|
||||
# Hide the blinking cursor
|
||||
try:
|
||||
|
||||
@@ -3,11 +3,11 @@ from __future__ import unicode_literals
|
||||
|
||||
import os
|
||||
import sys
|
||||
import six
|
||||
import time
|
||||
import curses
|
||||
from functools import wraps
|
||||
|
||||
import six
|
||||
from kitchen.text.display import textual_width
|
||||
|
||||
from . import docs
|
||||
|
||||
@@ -426,7 +426,7 @@ class Terminal(object):
|
||||
except Exception as e:
|
||||
# If Imgur decides to change its html layout, let it fail
|
||||
# silently in the background instead of crashing.
|
||||
_logger.warn('parser %s raised an exception', parser)
|
||||
_logger.warning('parser %s raised an exception', parser)
|
||||
_logger.exception(e)
|
||||
raise exceptions.MailcapEntryNotFound()
|
||||
if not content_type:
|
||||
|
||||
Reference in New Issue
Block a user