@_replaceIf(_PY3, passthru)
@_replaceIf((not _shouldEnableNewStyle()), _ensureOldClass)
def _oldStyle(cls):
 _ensureOldClass(cls)
 _bases = (cls.__bases__ + (object,))
 return type(cls.__name__, _bases, cls.__dict__)

@ _replaceIf ( _PY3 , passthru ) @ _replaceIf ( ( not _shouldEnableNewStyle ( ) ) , _ensureOldClass ) def _oldStyle ( cls ) : _ensureOldClass ( cls ) _bases = ( cls . __bases__ + ( object , ) ) return type ( cls . __name__ , _bases , cls . __dict__ )
a decorator which conditionally converts old-style classes to new-style classes .