(handle, filename)
Give printing process some time to complete.
Give printing process some time to complete.
Give printing process some time to complete .
def _wait_for_process(handle, filename):
    """Give printing process some time to complete."""
    try:
        _WaitForSingleObject(handle, DWORD(PRINTER_TIMEOUT_MS))
    except EnvironmentError as e:
        logging.warning('Windows error: %s', e)
    # remove temporary
    os.remove(filename)
def _wait_for_process ( handle , filename ) : try : _WaitForSingleObject ( handle , DWORD ( PRINTER_TIMEOUT_MS ) ) except EnvironmentError as e : logging . warning ( 'Windows error: %s' , e ) # remove temporary os . remove ( filename )