(self, type_printers)
Print a list of type printers.
Print a list of type printers.
Print a list of type printers .
def list_type_printers(self, type_printers):
        """Print a list of type printers."""
        # A potential enhancement is to provide an option to list printers in
        # "lookup order" (i.e. unsorted).
        sorted_type_printers = sorted (copy.copy(type_printers),
                                       key = lambda x: x.name)
        for printer in sorted_type_printers:
            if printer.enabled:
                enabled = ''
            else:
                enabled = " [disabled]"
            print ("  %s%s" % (printer.name, enabled))
def list_type_printers ( self , type_printers ) : # A potential enhancement is to provide an option to list printers in # "lookup order" (i.e. unsorted). sorted_type_printers = sorted ( copy . copy ( type_printers ) , key = lambda x : x . name ) for printer in sorted_type_printers : if printer . enabled : enabled = '' else : enabled = " [disabled]" print ( "  %s%s" % ( printer . name , enabled ) )