B
    T[                 @   s$   d Z ddlmZ G dd deZdS )z(
Created on May 23, 2014

@author: sean
    )jencodec               @   s   e Zd ZdddZdS )PackageMixinNmainc             C   s`   d| j |||f }|r"|d| 7 }t|||d}	t|	\}
}| jj||
|d}| | | S )Nz%s/copy/package/%s/%s/%sz/%s)to_ownerZfrom_channelZ
to_channel)dataheaders)Zdomaindictr   ZsessionZpostZ_check_responseZjson)selfownerpackageversionbasenamer   Z
from_labelZto_labelZurlZpayloadr   r   Zres r   \lib/python3.7/site-packages/anaconda_client-1.7.2-py3.7.egg/binstar_client/mixins/package.pycopy
   s    
zPackageMixin.copy)NNr   r   )__name__
__module____qualname__r   r   r   r   r   r      s    r   N)__doc__Zbinstar_client.utilsr   objectr   r   r   r   r   <module>   s   