3
(hh                 @   s    d dl mZ G dd deZdS )    )DatabaseSchemaEditorc               @   s   e Zd Zdd ZdS )r   c             C   sP   | j j  t|tr |jdd}| j j jj|}t|trLt|trL|j }|S )N%z%%)	
connectionZensure_connection
isinstancestrreplace	converterescapebytesdecode)selfvaluequoted r   Q/tmp/pip-install-q3hcpn_q/mysql-connector-python/mysql/connector/django/schema.pyquote_value"   s    

z DatabaseSchemaEditor.quote_valueN)__name__
__module____qualname__r   r   r   r   r   r       s   r   N)Zdjango.db.backends.mysql.schemar   ZMySQLDatabaseSchemaEditorr   r   r   r   <module>   s   