def wcn(lines): ''' Writes the given lines on the Windows clipboard separating them with a newline character.''' if lines is not None: try: _write_to_clipboard('\n'.join(lines)) except Exception: raise WindowsError("Failed to write to the clipboard.")
def wc(lines): ''' Writes the given lines on the Windows clipboard after concatenating them together.''' if lines is not None: try: _write_to_clipboard(''.join(lines)) except Exception: raise WindowsError("Failed to write to the clipboard.")