From a4efadb3776691af55dfb25aae02bbc1b27dfa84 Mon Sep 17 00:00:00 2001 From: hploetz Date: Sat, 10 Feb 2007 21:46:57 +0000 Subject: Do not make the __init__ method mandatory git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@172 f711b948-2313-0410-aaa9-d29f33439f0b --- cards/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cards') diff --git a/cards/__init__.py b/cards/__init__.py index ecc77c7..8eb7361 100644 --- a/cards/__init__.py +++ b/cards/__init__.py @@ -95,7 +95,8 @@ class Cardmultiplexer: (newcls, delcls) = self._update_classes(list(classes), []) for cls in newcls: - cls.__init__(self, *self._init_args, **self._init_kwargs) + if hasattr(cls, "__init__"): + cls.__init__(self, *self._init_args, **self._init_kwargs) self._merge_attributes() -- cgit v1.2.3