o
    >]I                     @   sD  d Z ddlZddlZddlZz
ddlmZmZ W n ey)   ddlmZmZ Y nw ej	d dkZ
e
rceZddlmZ ddlmZ ddlmZmZmZmZmZ ddlmZmZ efZefZed	Zn9dd
l m!Z ddlm"Z ddl#mZmZmZmZ ddl$mZmZ ddl%Z%dd Ze&Zee'fZedZddl(mZ dd Z)dS )zK
Python 2/3 compatibility helpers.

Note: This module is *not* public API.
    N)MutableMappingSequence   )	lru_cache)StringIO)unquoteurljoin
urlunsplitSplitResulturlsplit)pathname2urlurlopenitems)izip)BytesIO)r   r	   r
   r   )r   r   c                  O   s   t tj| i |S )N)
contextlibclosingurllib2r   )argskwargs r   3/usr/lib/python3/dist-packages/jsonschema/compat.pyr   #   s   r   	iteritemsc                 C   sD   d| v rt | \}}}}}t||||df}||fS | }d}||fS )N# )r   r	   )urlsnpqfragdefragr   r   r   	urldefrag-   s   r"   )*__doc__r   operatorsyscollections.abcr   r   ImportErrorcollectionsversion_infoPY3zip	functoolsr   ior   NativeIOurllib.parser   r   r	   r
   r   urllib.requestr   r   str	str_typesint	int_typesmethodcallerr   	itertoolsr   r   urlparseurllibr   
basestringlongfunctools32r"   r   r   r   r   <module>   s<    
