From 383fb61b0def102f7faf600dc870fb713ffa5524 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Sat, 26 Nov 2016 19:23:16 +0100 Subject: [PATCH] Fix the inconsistent partial detection for #1865 --- waflib/TaskGen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waflib/TaskGen.py b/waflib/TaskGen.py index 25ed3eaa..df43cd6a 100644 --- a/waflib/TaskGen.py +++ b/waflib/TaskGen.py @@ -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."