Fix the inconsistent partial detection for #1865

This commit is contained in:
Thomas Nagy 2016-11-26 19:23:16 +01:00
parent c5bf55ee86
commit 383fb61b0d
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
1 changed files with 1 additions and 1 deletions

View File

@ -634,7 +634,7 @@ def process_rule(self):
if getattr(self, 'cwd', None):
tsk.cwd = self.cwd
if type(tsk.run) is functools.partial:
if isinstance(tsk.run, functools.partial):
# Python documentation says: "partial objects defined in classes
# behave like static methods and do not transform into bound
# methods during instance attribute look-up."