summaryrefslogtreecommitdiff
path: root/kafka/conn.py
diff options
context:
space:
mode:
authorKevin Tindall <kevinkjt2000@users.noreply.github.com>2018-02-06 14:10:45 -0600
committerDana Powers <dana.powers@gmail.com>2018-02-06 12:10:45 -0800
commit9ae0e590b5ea93a9c07d71b55b593e0fcc973bc6 (patch)
tree7baee93ef095c3694a9ddbc50809b2a681ef56f8 /kafka/conn.py
parentc0df771cf51bc27f2dd5d5af333666f4074e68c8 (diff)
downloadkafka-python-9ae0e590b5ea93a9c07d71b55b593e0fcc973bc6.tar.gz
use absolute imports everywhere (#1362)
Diffstat (limited to 'kafka/conn.py')
-rw-r--r--kafka/conn.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/kafka/conn.py b/kafka/conn.py
index 4fe5e21..0c8ae9a 100644
--- a/kafka/conn.py
+++ b/kafka/conn.py
@@ -12,7 +12,7 @@ try:
import selectors # pylint: disable=import-error
except ImportError:
# vendored backport module
- from .vendor import selectors34 as selectors
+ from kafka.vendor import selectors34 as selectors
import socket
import struct
@@ -858,8 +858,8 @@ class BrokerConnection(object):
# vanilla MetadataRequest. If the server did not recognize the first
# request, both will be failed with a ConnectionError that wraps
# socket.error (32, 54, or 104)
- from .protocol.admin import ApiVersionRequest, ListGroupsRequest
- from .protocol.commit import OffsetFetchRequest, GroupCoordinatorRequest
+ from kafka.protocol.admin import ApiVersionRequest, ListGroupsRequest
+ from kafka.protocol.commit import OffsetFetchRequest, GroupCoordinatorRequest
# Socket errors are logged as exceptions and can alarm users. Mute them
from logging import Filter