diff options
author | hploetz <hploetz@f711b948-2313-0410-aaa9-d29f33439f0b> | 2007-02-10 21:46:57 +0000 |
---|---|---|
committer | hploetz <hploetz@f711b948-2313-0410-aaa9-d29f33439f0b> | 2007-02-10 21:46:57 +0000 |
commit | a4efadb3776691af55dfb25aae02bbc1b27dfa84 (patch) | |
tree | a23a8a7b6ab8e47460d2a74d1859e066118c71bd /cards | |
parent | da08a97db794a6601c7e7b8d43af54936cc253c8 (diff) |
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
Diffstat (limited to 'cards')
-rw-r--r-- | cards/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
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() |