A couple of pylint changes
This commit is contained in:
@@ -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__)
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user