Don't pass self to a bound method

getattr(self, 'file') returns a bound method. That bound method doesn't
need a self parameter.

Change-Id: I798fa960708fa9661193ff8b6056a073ebd82dca
This commit is contained in:
Monty Taylor 2017-08-08 17:41:58 -05:00
parent bbaf222aa4
commit 14606de330
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class ActionModule(normal.ActionModule):
handler_name = 'handle_{action}'.format(action=self._task.action)
handler = getattr(self, handler_name, None)
if handler:
handler(self)
handler()
return True
return False