def controlPrinter(printer_name, cups_op): if cups_op in (CUPS_ACCEPT_JOBS, CUPS_REJECT_JOBS, IPP_PAUSE_PRINTER, IPP_RESUME_PRINTER, IPP_PURGE_JOBS): return cupsext.controlPrinter(printer_name, cups_op) return 0;
def controlPrinter(printer_name, cups_op): if cups_op in (CUPS_ACCEPT_JOBS, CUPS_REJECT_JOBS, IPP_PAUSE_PRINTER, IPP_RESUME_PRINTER, IPP_PURGE_JOBS): return cupsext.controlPrinter(printer_name, cups_op) return 0