parameters: (distributions, list_files=False, verbose=False)
return_statement: return results_printed
docstring: Print the information from installed distributions found.
docstring_summary: Print the information from installed distributions found.
docstring_tokens: Print the information from installed distributions found .
function: def print_results(distributions, list_files=False, verbose=False):
      # type: (Iterator[Dict[str, str]], bool, bool) -> bool
      """
      Print the information from installed distributions found.
      """
      results_printed = False
      for i, dist in enumerate(distributions):
          results_printed = True
          if i > 0:
              write_output("---")
  
          write_output("Name: %s", dist.get('name', ''))
          write_output("Version: %s", dist.get('version', ''))
          write_output("Summary: %s", dist.get('summary', ''))
          write_output("Home-page: %s", dist.get('home-page', ''))
          write_output("Author: %s", dist.get('author', ''))
          write_output("Author-email: %s", dist.get('author-email', ''))
          write_output("License: %s", dist.get('license', ''))
          write_output("Location: %s", dist.get('location', ''))
          write_output("Requires: %s", ', '.join(dist.get('requires', [])))
          write_output("Required-by: %s", ', '.join(dist.get('required_by', [])))
  
          if verbose:
              write_output("Metadata-Version: %s",
                           dist.get('metadata-version', ''))
              write_output("Installer: %s", dist.get('installer', ''))
              write_output("Classifiers:")
              for classifier in dist.get('classifiers', []):
                  write_output("  %s", classifier)
              write_output("Entry-points:")
              for entry in dist.get('entry_points', []):
                  write_output("  %s", entry.strip())
          if list_files:
              write_output("Files:")
              for line in dist.get('files', []):
                  write_output("  %s", line.strip())
              if "files" not in dist:
                  write_output("Cannot locate installed-files.txt")
      return results_printed
function_tokens: def print_results ( distributions , list_files = False , verbose = False ) : # type: (Iterator[Dict[str, str]], bool, bool) -> bool results_printed = False for i , dist in enumerate ( distributions ) : results_printed = True if i > 0 : write_output ( "---" ) write_output ( "Name: %s" , dist . get ( 'name' , '' ) ) write_output ( "Version: %s" , dist . get ( 'version' , '' ) ) write_output ( "Summary: %s" , dist . get ( 'summary' , '' ) ) write_output ( "Home-page: %s" , dist . get ( 'home-page' , '' ) ) write_output ( "Author: %s" , dist . get ( 'author' , '' ) ) write_output ( "Author-email: %s" , dist . get ( 'author-email' , '' ) ) write_output ( "License: %s" , dist . get ( 'license' , '' ) ) write_output ( "Location: %s" , dist . get ( 'location' , '' ) ) write_output ( "Requires: %s" , ', ' . join ( dist . get ( 'requires' , [ ] ) ) ) write_output ( "Required-by: %s" , ', ' . join ( dist . get ( 'required_by' , [ ] ) ) ) if verbose : write_output ( "Metadata-Version: %s" , dist . get ( 'metadata-version' , '' ) ) write_output ( "Installer: %s" , dist . get ( 'installer' , '' ) ) write_output ( "Classifiers:" ) for classifier in dist . get ( 'classifiers' , [ ] ) : write_output ( "  %s" , classifier ) write_output ( "Entry-points:" ) for entry in dist . get ( 'entry_points' , [ ] ) : write_output ( "  %s" , entry . strip ( ) ) if list_files : write_output ( "Files:" ) for line in dist . get ( 'files' , [ ] ) : write_output ( "  %s" , line . strip ( ) ) if "files" not in dist : write_output ( "Cannot locate installed-files.txt" ) return results_printed