fix docs about content_type and serialization

if serializer is None and content_type is not specified, then serialization will happen (see messaging.Producer:_prepare)
This commit is contained in:
Tommaso Barbugli 2015-07-01 13:49:34 +02:00
parent 29c31780c6
commit a9ccd7624b
1 changed files with 2 additions and 2 deletions

View File

@ -106,10 +106,10 @@ Sending raw data without Serialization
======================================
In some cases, you don't need your message data to be serialized. If you
pass in a plain string or Unicode object as your message, then `Kombu` will
pass in a plain string or Unicode object as your message and a custom `content_type`, then `Kombu` will
not waste cycles serializing/deserializing the data.
You can optionally specify a `content_type` and `content_encoding`
You can optionally specify a `content_encoding`
for the raw data::
>>> with open("~/my_picture.jpg", "rb") as fh: