diff options
author | Jeff Widman <jeff@jeffwidman.com> | 2017-01-11 17:18:02 -0800 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2017-01-11 17:18:02 -0800 |
commit | 9a08efbdd2ee7ef5391079f548a100e578bcfab3 (patch) | |
tree | b2ea39b4234acc817d6039e7e0590c1749cd30bf /kafka | |
parent | cfb5f0e285a7ad549c88af092d70296ca31f1e56 (diff) | |
download | kafka-python-9a08efbdd2ee7ef5391079f548a100e578bcfab3.tar.gz |
Fix typo: coorelation --> correlation (#929)
Diffstat (limited to 'kafka')
-rw-r--r-- | kafka/conn.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kafka/conn.py b/kafka/conn.py index 55ddd64..cbecfa7 100644 --- a/kafka/conn.py +++ b/kafka/conn.py @@ -690,13 +690,13 @@ class BrokerConnection(object): ifr.correlation_id != 0 and recv_correlation_id == 0): log.warning('Kafka 0.8.2 quirk -- GroupCoordinatorResponse' - ' coorelation id does not match request. This' + ' Correlation ID does not match request. This' ' should go away once at least one topic has been' - ' initialized on the broker') + ' initialized on the broker.') elif ifr.correlation_id != recv_correlation_id: error = Errors.CorrelationIdError( - '%s: Correlation ids do not match: sent %d, recv %d' + '%s: Correlation IDs do not match: sent %d, recv %d' % (str(self), ifr.correlation_id, recv_correlation_id)) ifr.future.failure(error) self.close() @@ -752,7 +752,7 @@ class BrokerConnection(object): stashed[key] = self.config[key] self.config[key] = override_config[key] - # kafka kills the connection when it doesnt recognize an API request + # kafka kills the connection when it doesn't recognize an API request # so we can send a test request and then follow immediately with a # vanilla MetadataRequest. If the server did not recognize the first # request, both will be failed with a ConnectionError that wraps @@ -1018,7 +1018,7 @@ def get_ip_port_afi(host_and_port_str): return host_and_port_str, DEFAULT_KAFKA_PORT, socket.AF_INET6 except AttributeError: log.warning('socket.inet_pton not available on this platform.' - ' consider pip install win_inet_pton') + ' consider `pip install win_inet_pton`') pass except (ValueError, socket.error): # it's a host:port pair |