
vÅÏ^?  ã               @   sÏ   d  Z  d d l Z d d l m Z e j d d k Z e j d d k Z e rˆ d d „  Z e Z	 e f Z
 d d l m Z e e f Z nC e rË d	 d „  Z e Z	 e e f Z
 d d l m Z e e e f Z d S)
zÿPython 2/3 compatibility.

This module only exists to avoid a dependency on six
for very trivial stuff. We only need to take care of
string types, buffers and metaclasses.

Parts of the code is copied directly from six:
https://bitbucket.org/gutworth/six
é    N)Ú
TextIOBaseé   é   c             C   s   |  S)N© )Úclsr   r   ú3/tmp/pip-build-8lau8j11/sqlparse/sqlparse/compat.pyÚunicode_compatible   s    r   )ÚStringIOc             C   s   |  j  |  _ d d „  |  _  |  S)Nc             S   s   |  j  ƒ  j d ƒ S)Nzutf-8)Ú__unicode__Úencode)Úxr   r   r   Ú<lambda>'   s    z$unicode_compatible.<locals>.<lambda>)Ú__str__r
   )r   r   r   r   r   %   s    )Ú__doc__ÚsysÚior   Úversion_infoÚPY2ÚPY3r   ÚstrÚ	text_typeÚstring_typesr	   Z
file_typesÚunicodeÚfiler   r   r   r   Ú<module>   s    	