parameters: (root=None)
return_statement: return len(errors) == 0
docstring: Scan a list of directories and report on any problems we find.
docstring_summary: Scan a list of directories and report on any problems we find.
docstring_tokens: Scan a list of directories and report on any problems we find .
function: def ScanThirdPartyDirs(root=None):
      """Scan a list of directories and report on any problems we find."""
      if root is None:
        root = os.getcwd()
      third_party_dirs = FindThirdPartyDirsWithFiles(root)
  
      errors = []
      for path in sorted(third_party_dirs):
          try:
              metadata = ParseDir(path, root)
          except LicenseError, e:
              errors.append((path, e.args[0]))
              continue
  
      for path, error in sorted(errors):
          print path + ": " + error
  
      return len(errors) == 0
function_tokens: def ScanThirdPartyDirs ( root = None ) : if root is None : root = os . getcwd ( ) third_party_dirs = FindThirdPartyDirsWithFiles ( root ) errors = [ ] for path in sorted ( third_party_dirs ) : try : metadata = ParseDir ( path , root ) except LicenseError , e : errors . append ( ( path , e . args [ 0 ] ) ) continue for path , error in sorted ( errors ) : print path + ": " + error return len ( errors ) == 0