Skip to content
Snippets Groups Projects
Commit ef788564 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

py3k

parent 1cb797cc
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,11 @@ class AMQPClass(object):
class AMQPContentPropertyList(object):
"""
A class is intmately bound with content and content properties
A class is intmately bound with content and content properties.
WARNING: BE PREPARED that if you receive a content from the network,
string values will be memoryviews. Use .tobytes() to correct that.
If YOU create a property list, they will be bytes all right.
"""
PROPERTIES = []
......
......@@ -207,7 +207,7 @@ def to_docstring(label, doc, prefix=4, blank=True): # output a full docstring se
if len(doc) == 1:
return doc[0]
doc = filter(lambda p: len(p.strip()) > 0, doc)
doc = [p for p in doc if len(p.strip()) > 0]
if blank:
doc = [doc[0], u''] + doc[1:]
......
# coding=UTF-8
"""
It sounds like a melody
"""
from __future__ import print_function, absolute_import, division
import six
import unittest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment