diff --git a/carrot/backends/librabbitmq.py b/carrot/backends/librabbitmq.py index 5adf713..ea44b53 100644 --- a/carrot/backends/librabbitmq.py +++ b/carrot/backends/librabbitmq.py @@ -18,7 +18,7 @@ class Message(BaseMessage): """A message received by the broker. - Usually you don't insantiate message objects yourself, but receive + Usually you don't instantiate message objects yourself, but receive them using a :class:`carrot.messaging.Consumer`. :param backend: see :attr:`backend`. diff --git a/carrot/backends/pyamqplib.py b/carrot/backends/pyamqplib.py index e9993bd..1ae3b7c 100644 --- a/carrot/backends/pyamqplib.py +++ b/carrot/backends/pyamqplib.py @@ -114,7 +114,7 @@ class QueueAlreadyExistsWarning(UserWarning): class Message(BaseMessage): """A message received by the broker. - Usually you don't insantiate message objects yourself, but receive + Usually you don't instantiate message objects yourself, but receive them using a :class:`carrot.messaging.Consumer`. :param backend: see :attr:`backend`. diff --git a/carrot/backends/pystomp.py b/carrot/backends/pystomp.py index 08f551d..302492b 100644 --- a/carrot/backends/pystomp.py +++ b/carrot/backends/pystomp.py @@ -13,7 +13,7 @@ class Message(BaseMessage): """A message received by the STOMP broker. - Usually you don't insantiate message objects yourself, but receive + Usually you don't instantiate message objects yourself, but receive them using a :class:`carrot.messaging.Consumer`. :param backend: see :attr:`backend`. diff --git a/carrot/messaging.py b/carrot/messaging.py index 5710062..558c70b 100644 --- a/carrot/messaging.py +++ b/carrot/messaging.py @@ -494,7 +494,7 @@ def flow(self, active): content data. This is a simple flow-control mechanism that a - peer can use to avoid oveflowing its queues or otherwise + peer can use to avoid overflowing its queues or otherwise finding itself receiving more messages than it can process. Note that this method is not intended for window control. The peer that receives a request to stop sending content should diff --git a/carrot/utils.py b/carrot/utils.py index 268f726..0c12bae 100644 --- a/carrot/utils.py +++ b/carrot/utils.py @@ -7,7 +7,7 @@ def gen_unique_id(): """Generate a unique id, having - hopefully - a very small chance of - collission. + collision. For now this is provided by :func:`uuid.uuid4`. """