Rename variable to fix pylint warning:

https://travis-ci.org/The-Compiler/qutebrowser/jobs/68949925

	************* Module qutebrowser.browser.downloads
	W:299,36: Redefining name 'message' from outer scope (line 39) (redefined-outer-name)
This commit is contained in:
Martin Tournoij 2015-06-30 13:22:20 +02:00
parent c7cd51a7d5
commit 2c5898b9f7

View File

@ -296,10 +296,10 @@ class DownloadItem(QObject):
else:
self.set_fileobj(fileobj)
def _ask_confirm_question(self, message):
def _ask_confirm_question(self, msg):
"""Create a Question object to be asked."""
q = usertypes.Question(self)
q.text = message + ' (N/y)'
q.text = msg + ' (N/y)'
q.mode = usertypes.PromptMode.yesno
q.answered_yes.connect(self._create_fileobj)
q.answered_no.connect(functools.partial(self.cancel, False))