o
    NEþg  ã                
   @   sj   d Z ddlZddlmZ ze ¡ ZW n eeefy    dZY nw dZdefdd„Z	d	eddfd
d„Z
dS )zY
This module provides basic ability to copy from and paste to the clipboard/pastebuffer.
é    N)ÚPyperclipExceptionFTÚreturnc                  C   s   t  ¡ } | S )z^Get the contents of the clipboard / paste buffer.

    :return: contents of the clipboard
    )Ú	pyperclipÚpaste)Úpb_str© r   úh/var/www/eduai.edurigo.com/doc_train/edurigo_ai/Puru/venv/lib/python3.10/site-packages/cmd2/clipboard.pyÚget_paste_buffer   s   r	   Útxtc                 C   s   t  | ¡ dS )z^Copy text to the clipboard / paste buffer.

    :param txt: text to copy to the clipboard
    N)r   Úcopy)r
   r   r   r   Úwrite_to_paste_buffer    s   r   )Ú__doc__r   r   r   Ú_ÚFileNotFoundErrorÚ
ValueErrorÚcan_clipÚstrr	   r   r   r   r   r   Ú<module>   s   ý	