ó
ÉÈ÷Xc           @   sŒ  d  Z  d d l Z d d l Z y# d d l m Z e j Z e Z Wn e	 k
 r` d Z e
 Z n Xe d k r| e d ƒ ‚ n  e d k  rö y2 d d l m Z e s° e	 d ƒ ‚ n  [ d	 Z Wqö e	 k
 rò e ró e j d d
 k rï d	 Z qï qó qö Xn  e d k rd n d Z e j d e ƒ Z e d k r5d Z n  e j d d ƒ Z e d k rje d e d ƒ ‚ n  e e ƒ Z d „  Z d „  Z d S(   sL   Determine which implementation of the protobuf API is used in this process.
iÿÿÿÿN(   t   _api_implementationi   s%   api_version=1 is no longer supported.i    (   t   _use_fast_cpp_protoss2   _use_fast_cpp_protos import succeeded but was Nonei   i   t   pythont   cppt&   PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATIONt.   PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSIONt   2s=   unsupported PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION: "s   " (supported versions: 2)c           C   s   t  S(   N(   t   _implementation_type(    (    (    sm   /tmp/pip-build-UG86a1/tensorflow/tensorflow-0.6.0.data/purelib/google/protobuf/internal/api_implementation.pyt   Typee   s    c           C   s   t  S(   N(   t   _implementation_version(    (    (    sm   /tmp/pip-build-UG86a1/tensorflow/tensorflow-0.6.0.data/purelib/google/protobuf/internal/api_implementation.pyt   Versionj   s    (   t   __doc__t   ost   syst   google.protobuf.internalR    t   api_versiont   _api_versiont   Truet'   _proto_extension_modules_exist_in_buildt   ImportErrort   Falset
   ValueErrort   google.protobufR   t   version_infot   _default_implementation_typet   getenvR   t   _implementation_version_strt   intR	   R   R
   (    (    (    sm   /tmp/pip-build-UG86a1/tensorflow/tensorflow-0.6.0.data/purelib/google/protobuf/internal/api_implementation.pyt   <module>    sF   	


				