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:
parent
c7cd51a7d5
commit
2c5898b9f7
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user