[MERGE] Add and use _get_protocol_factory_for_bytes function (protocol v3 patch 3/7)
Andrew Bennetts
andrew at canonical.com
Wed Apr 23 23:57:50 BST 2008
This is the third in a series of patches that implement version 3 of the smart
server protocol. The full branch with all changes combined is at
<http://people.ubuntu.com/~andrew/bzr/protocol-v3-loom/>
medium.py
---------
The changes in this file implement a '_get_protocol_factory_for_bytes' function
that figures out the right protocol factory (i.e. what version of the protocol
is being used, and thus which decoder to use) for some given bytes.
I also renamed excess_bytes to unused_data to be consistent with the same change
made in protocol.py
wsgi.py
-------
Use _get_protocol_factory_for_bytes, rather than duplicating the protocol
version detection.
http_utils.py
-------------
Use _get_protocol_factory_for_bytes, rather than hard-coding the test server to v1!
-Andrew.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v3-get-protocol-factory.patch
Type: text/x-diff
Size: 7064 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080424/932139df/attachment-0002.bin
More information about the bazaar
mailing list