ó
mÜJ]c           @` sx   d  Z  d d l m Z m Z m Z m Z d d l Z e j e ƒ Z	 d Z
 i d d d d d d d d d d f
 d 6Z d S(   u   Provide definitions for Bokeh WebSocket protocol versions.

A *protocol specification* is a sequence of tuples of the form:

.. code-block:: python

    (
        (<message_type>, <revision>),
        (<message_type>, <revision>),
        ...
    )

Where ``<message_type>`` is string that identifies a message type, e.g,
``'ACK'``, ``'SERVER-INFO-REQ'``, etc. and ``<revision>`` is an integer that
identifies what revision of the message this version of the protocol uses.

A *protocol version* is a string of the form ``'<major>.<minor>'``. The
guidelines for updating the major or minor version are:

``<major>``
    bump when new messages are added or deleted (and reset minor
    version to zero)

``<minor>``
    bump when existing message revisions change

.. data:: spec
    :annotation:

    A mapping of protocol versions to protocol specifications.

    .. code-block:: python

        {
            "1.0" : (
                ("ACK", 1),
                ("OK", 1),
                ("ERROR", 1),
                ("EVENT", 1),
                ('SERVER-INFO-REPLY', 1),
                ('SERVER-INFO-REQ', 1),
                ('PULL-DOC-REQ', 1),
                ('PULL-DOC-REPLY', 1),
                ('PUSH-DOC', 1),
                ('PATCH-DOC', 1)
            ),
        }


i    (   t   absolute_importt   divisiont   print_functiont   unicode_literalsNu   specu   ACKi   u   OKu   ERRORu   EVENTu   SERVER-INFO-REPLYu   SERVER-INFO-REQu   PULL-DOC-REQu   PULL-DOC-REPLYu   PUSH-DOCu	   PATCH-DOCu   1.0(   u   spec(   u   ACKi   (   u   OKi   (   u   ERRORi   (   u   EVENTi   (   u   SERVER-INFO-REPLYi   (   u   SERVER-INFO-REQi   (   u   PULL-DOC-REQi   (   u   PULL-DOC-REPLYi   (   u   PUSH-DOCi   (   u	   PATCH-DOCi   (   t   __doc__t
   __future__R    R   R   R   t   loggingt	   getLoggert   __name__t   logt   __all__t   spec(    (    (    s6   lib/python2.7/site-packages/bokeh/protocol/versions.pyt   <module>8   s   "