From f82f280eafe46b5df617c7319527704d3f2cde0c Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Tue, 18 Sep 2012 17:50:17 +0200 Subject: [PATCH] Fix type test --- pygal/ghost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygal/ghost.py b/pygal/ghost.py index 51db3e2..e5224b4 100644 --- a/pygal/ghost.py +++ b/pygal/ghost.py @@ -44,7 +44,7 @@ class Ghost(object): """Init config""" name = self.__class__.__name__ self.cls = REAL_CHARTS[name] - if config and type(config) == type: + if config and isinstance(config, type): config = config() if config: