def moduleProvides(*interfaces):
 frame = sys._getframe(1)
 locals = frame.f_locals
 if ((locals is not frame.f_globals) or ('__name__' not in locals)):
  raise TypeError('moduleProvides can only be used from a module definition.')
 if ('__provides__' in locals):
  raise TypeError('moduleProvides can only be used once in a module definition.')
 locals['__provides__'] = Provides(ModuleType, *_normalizeargs(interfaces))

def moduleProvides ( * interfaces ) : frame = sys . _getframe ( 1 ) locals = frame . f_locals if ( ( locals is not frame . f_globals ) or ( '__name__' not in locals ) ) : raise TypeError ( 'moduleProvides can only be used from a module definition.' ) if ( '__provides__' in locals ) : raise TypeError ( 'moduleProvides can only be used once in a module definition.' ) locals [ '__provides__' ] = Provides ( ModuleType , * _normalizeargs ( interfaces ) )
declare interfaces provided by a module this function is used in a module definition .