Merge pull request #11469 from pilou-/local_variable
Fix pyflakes error: use 'msg' variable
This commit is contained in:
commit
80eb7a20ca
3 changed files with 3 additions and 3 deletions
|
@ -95,7 +95,7 @@ class Play(Base, Taggable, Become):
|
||||||
|
|
||||||
def get_name(self):
|
def get_name(self):
|
||||||
''' return the name of the Play '''
|
''' return the name of the Play '''
|
||||||
return "PLAY: %s" % self._attributes.get('name')
|
return self._attributes.get('name')
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def load(data, variable_manager=None, loader=None):
|
def load(data, variable_manager=None, loader=None):
|
||||||
|
|
|
@ -108,4 +108,4 @@ class CallbackModule(CallbackBase):
|
||||||
else:
|
else:
|
||||||
msg = "PLAY [%s]" % name
|
msg = "PLAY [%s]" % name
|
||||||
|
|
||||||
self._display.banner(name)
|
self._display.banner(msg)
|
||||||
|
|
|
@ -39,7 +39,7 @@ class TestPlay(unittest.TestCase):
|
||||||
|
|
||||||
def test_empty_play(self):
|
def test_empty_play(self):
|
||||||
p = Play.load(dict())
|
p = Play.load(dict())
|
||||||
self.assertEqual(str(p), "PLAY: ")
|
self.assertEqual(str(p), '')
|
||||||
|
|
||||||
def test_basic_play(self):
|
def test_basic_play(self):
|
||||||
p = Play.load(dict(
|
p = Play.load(dict(
|
||||||
|
|
Loading…
Reference in a new issue