view ikweb/tools/lazy/www/core/utils.py @ 377:5d6f429e5f19 tip

fixed a typo.
author "Rex Tsai <chihchun@kalug.linux.org.tw>"
date Tue, 14 Apr 2009 17:16:43 +0800
parents 7747bbe5b68e
children
line wrap: on
line source


def mix_in(py_class, mixin_class):
    if mixin_class not in py_class.__bases__:
        py_class.__bases__ += (mixin_class,)