B
    't\q                 @   sN   d dl mZmZ d dlZd dlmZ ddlmZmZ dgZ	G dd deZ
dS )    )absolute_importunicode_literalsN)SelectionType   )	ClipboardClipboardDataPyperclipClipboardc               @   s(   e Zd ZdZdd Zdd Zdd ZdS )	r   zr
    Clipboard that synchronizes with the Windows/Mac/Linux system clipboard,
    using the pyperclip module.
    c             C   s
   d | _ d S )N)_data)self r   Alib/python3.7/site-packages/prompt_toolkit/clipboard/pyperclip.py__init__   s    zPyperclipClipboard.__init__c             C   s$   t |tst|| _t|j d S )N)
isinstancer   AssertionErrorr	   	pyperclipcopytext)r
   datar   r   r   set_data   s    zPyperclipClipboard.set_datac             C   s@   t  }| jr | jj|kr | jS t|d|kr2tjntjdS d S )N
)r   type)r   Zpaster	   r   r   r   ZLINES)r
   r   r   r   r   get_data   s    zPyperclipClipboard.get_dataN)__name__
__module____qualname____doc__r   r   r   r   r   r   r   r      s   )Z
__future__r   r   r   Zprompt_toolkit.selectionr   baser   r   __all__r   r   r   r   r   <module>   s
   