U
    PN^Q                     @   s   d dl Z d dlZe jd  dkZes:eZefZd dlmZ ne	Zee	fZd dlmZ dd Z
dddZG d	d
 d
eZede ejdedd dS )    N   )urlparsec                 C   s   t | tr| d} | S )zTransform string to bytes.utf-8)
isinstance	text_typeencode)text r	   8/tmp/pip-install-o1yuzyg2/flask-wtf/flask_wtf/_compat.pyto_bytes   s    

r   r   c                 C   s   t | ts| |} | S )z&Decodes input_bytes to text if needed.)r   string_typesdecode)Zinput_bytesencodingr	   r	   r
   
to_unicode   s    

r   c                   @   s   e Zd ZdS )FlaskWTFDeprecationWarningN)__name__
__module____qualname__r	   r	   r	   r
   r      s   r   alwaysignorezwtforms|flask_wtf)categorymodule)r   )syswarningsversion_infoPY2strr   r   urllib.parser   unicoder   r   DeprecationWarningr   simplefilterfilterwarningsr	   r	   r	   r
   <module>   s   
