parameters: (stylesheet, classnames, objectnames, objectnames_fuzzy)
docstring: Yields (token, problem) tuples for each problem found in stylesheet.
docstring_summary: Yields (token, problem) tuples for each problem found in stylesheet.
docstring_tokens: Yields ( token problem ) tuples for each problem found in stylesheet .
function: def check_stylesheet(stylesheet, classnames, objectnames, objectnames_fuzzy):
      """Yields (token, problem) tuples for each problem found in stylesheet."""
      for rule in stylesheet.rules:
          if not isinstance(rule, tinycss.css21.RuleSet):
              continue
          for token in rule.selector:
              if token.type == "IDENT":
                  if not RE_CLASSNAME.match(token.value):
                      continue
                  if token.value in classnames:
                      continue
                  if token.value in QTWIDGETS:
                      continue
                  yield (token, 'Unknown widget class "%s"' % token.value)
  
              elif token.type == "HASH":
                  value = token.value[1:]
                  if value in objectnames:
                      continue
  
                  if any(
                      fnmatch.fnmatchcase(value, objname)
                      for objname in objectnames_fuzzy
                  ):
                      continue
  
                  yield (token, 'Unknown object name "%s"' % token.value)
function_tokens: def check_stylesheet ( stylesheet , classnames , objectnames , objectnames_fuzzy ) : for rule in stylesheet . rules : if not isinstance ( rule , tinycss . css21 . RuleSet ) : continue for token in rule . selector : if token . type == "IDENT" : if not RE_CLASSNAME . match ( token . value ) : continue if token . value in classnames : continue if token . value in QTWIDGETS : continue yield ( token , 'Unknown widget class "%s"' % token . value ) elif token . type == "HASH" : value = token . value [ 1 : ] if value in objectnames : continue if any ( fnmatch . fnmatchcase ( value , objname ) for objname in objectnames_fuzzy ) : continue yield ( token , 'Unknown object name "%s"' % token . value )