Mercurial > hg > MakeItSo
diff makeitso/template.py @ 74:d16823fd8c4a
check for subclassing, not instance of
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 07 Jan 2011 18:14:21 -0800 |
parents | 3db48fdc6be3 |
children | ec35e5763b52 |
line wrap: on
line diff
--- a/makeitso/template.py Fri Jan 07 18:11:29 2011 -0800 +++ b/makeitso/template.py Fri Jan 07 18:14:21 2011 -0800 @@ -54,7 +54,7 @@ names = set() retval = [] for arg in args: - if isinstance(arg, MakeItSoTemplate): + if issubclass(arg, MakeItSoTemplate): arg = arg.vars for variable in arg: if variable.name in names: