File: //opt/alt/python27/lib/python2.7/site-packages/past/types/basestring.pyo
�
�A�[c           @   s�   d  Z  d d l Z d d l m Z m Z e r7 e Z n  e j d  Z d e	 f d �  �  YZ
 d e e
 � f d �  �  YZ d g Z d S(	   s�   
An implementation of the basestring type for Python 3
Example use:
>>> s = b'abc'
>>> assert isinstance(s, basestring)
>>> from past.types import str as oldstr
>>> s2 = oldstr(b'abc')
>>> assert isinstance(s2, basestring)
i����N(   t   with_metaclasst   PY2i   t   BaseBaseStringc           B   s   e  Z d  �  Z d �  Z RS(   c         C   s   t  | t t f � S(   N(   t
   isinstancet   bytest   str(   t   clst   instance(    (    sF   /opt/alt/python27/lib/python2.7/site-packages/past/types/basestring.pyt   __instancecheck__   s    c         C   s
   t  � d  S(   N(   t   NotImplemented(   R   t   thing(    (    sF   /opt/alt/python27/lib/python2.7/site-packages/past/types/basestring.pyt   __subclasshook__   s    (   t   __name__t
   __module__R   R   (    (    (    sF   /opt/alt/python27/lib/python2.7/site-packages/past/types/basestring.pyR      s   	t
   basestringc           B   s   e  Z d  Z RS(   sC   
    A minimal backport of the Python 2 basestring type to Py3
    (   R   R
   t   __doc__(    (    (    sF   /opt/alt/python27/lib/python2.7/site-packages/past/types/basestring.pyR   !   s   (
   R   t   syst
   past.utilsR    R   t   unicodeR   t   version_infot   vert   typeR   R   t   __all__(    (    (    sF   /opt/alt/python27/lib/python2.7/site-packages/past/types/basestring.pyt   <module>   s