def classProvides(*interfaces):
 frame = sys._getframe(1)
 locals = frame.f_locals
 if ((locals is frame.f_globals) or ('__module__' not in locals)):
  raise TypeError('classProvides can be used only from a class definition.')
 if ('__provides__' in locals):
  raise TypeError('classProvides can only be used once in a class definition.')
 locals['__provides__'] = _normalizeargs(interfaces)
 addClassAdvisor(_classProvides_advice, depth=2)

def classProvides ( * interfaces ) : frame = sys . _getframe ( 1 ) locals = frame . f_locals if ( ( locals is frame . f_globals ) or ( '__module__' not in locals ) ) : raise TypeError ( 'classProvides can be used only from a class definition.' ) if ( '__provides__' in locals ) : raise TypeError ( 'classProvides can only be used once in a class definition.' ) locals [ '__provides__' ] = _normalizeargs ( interfaces ) addClassAdvisor ( _classProvides_advice , depth = 2 )
declare interfaces provided directly by a class this function is called in a class definition .