A couple of pylint changes

This commit is contained in:
Michael Lazar
2017-03-28 23:18:13 -07:00
parent e37904fba5
commit 13e9fd9b10
5 changed files with 5 additions and 6 deletions

View File

@@ -115,10 +115,10 @@ def main():
# Check the praw version # Check the praw version
if packages.__praw_bundled__: if packages.__praw_bundled__:
_logger.info('Using packaged PRAW distribution, ' _logger.info('Using packaged PRAW distribution, '
'commit %s' % packages.__praw_hash__) 'commit %s', packages.__praw_hash__)
else: else:
_logger.info('Packaged PRAW not found, falling back to system ' _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 # Construct the reddit user agent
user_agent = docs.AGENT.format(version=__version__) user_agent = docs.AGENT.format(version=__version__)

View File

@@ -341,7 +341,7 @@ class SubmissionContent(Content):
url = url.replace('https://np.', 'https://www.') url = url.replace('https://np.', 'https://www.')
submission = reddit.get_submission(url, comment_sort=order) submission = reddit.get_submission(url, comment_sort=order)
return cls(submission, loader, indent_size, max_indent_level, order, return cls(submission, loader, indent_size, max_indent_level, order,
max_comment_cols) max_comment_cols)
@property @property
def range(self): def range(self):

View File

@@ -58,7 +58,6 @@ def curses_session():
curses.start_color() curses.start_color()
except: except:
_logger.warning('Curses failed to initialize color support') _logger.warning('Curses failed to initialize color support')
pass
# Hide the blinking cursor # Hide the blinking cursor
try: try:

View File

@@ -3,11 +3,11 @@ from __future__ import unicode_literals
import os import os
import sys import sys
import six
import time import time
import curses import curses
from functools import wraps from functools import wraps
import six
from kitchen.text.display import textual_width from kitchen.text.display import textual_width
from . import docs from . import docs

View File

@@ -426,7 +426,7 @@ class Terminal(object):
except Exception as e: except Exception as e:
# If Imgur decides to change its html layout, let it fail # If Imgur decides to change its html layout, let it fail
# silently in the background instead of crashing. # 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) _logger.exception(e)
raise exceptions.MailcapEntryNotFound() raise exceptions.MailcapEntryNotFound()
if not content_type: if not content_type: