diff options
author | Kevin Tindall <kevinkjt2000@users.noreply.github.com> | 2018-02-06 14:10:45 -0600 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2018-02-06 12:10:45 -0800 |
commit | 9ae0e590b5ea93a9c07d71b55b593e0fcc973bc6 (patch) | |
tree | 7baee93ef095c3694a9ddbc50809b2a681ef56f8 /kafka/record | |
parent | c0df771cf51bc27f2dd5d5af333666f4074e68c8 (diff) | |
download | kafka-python-9ae0e590b5ea93a9c07d71b55b593e0fcc973bc6.tar.gz |
use absolute imports everywhere (#1362)
Diffstat (limited to 'kafka/record')
-rw-r--r-- | kafka/record/__init__.py | 2 | ||||
-rw-r--r-- | kafka/record/default_records.py | 4 | ||||
-rw-r--r-- | kafka/record/legacy_records.py | 4 | ||||
-rw-r--r-- | kafka/record/memory_records.py | 6 | ||||
-rw-r--r-- | kafka/record/util.py | 2 |
5 files changed, 9 insertions, 9 deletions
diff --git a/kafka/record/__init__.py b/kafka/record/__init__.py index 4c75acb..cbd70d9 100644 --- a/kafka/record/__init__.py +++ b/kafka/record/__init__.py @@ -1,3 +1,3 @@ -from .memory_records import MemoryRecords +from kafka.record.memory_records import MemoryRecords __all__ = ["MemoryRecords"] diff --git a/kafka/record/default_records.py b/kafka/record/default_records.py index 3d517af..2bbd47e 100644 --- a/kafka/record/default_records.py +++ b/kafka/record/default_records.py @@ -57,8 +57,8 @@ import io import struct import time -from .abc import ABCRecord, ABCRecordBatch, ABCRecordBatchBuilder -from .util import decode_varint, encode_varint, calc_crc32c, size_of_varint +from kafka.record.abc import ABCRecord, ABCRecordBatch, ABCRecordBatchBuilder +from kafka.record.util import decode_varint, encode_varint, calc_crc32c, size_of_varint from kafka.errors import CorruptRecordException from kafka.codec import ( diff --git a/kafka/record/legacy_records.py b/kafka/record/legacy_records.py index 8c0791e..036e6c4 100644 --- a/kafka/record/legacy_records.py +++ b/kafka/record/legacy_records.py @@ -44,8 +44,8 @@ import struct import time -from .abc import ABCRecord, ABCRecordBatch, ABCRecordBatchBuilder -from .util import calc_crc32 +from kafka.record.abc import ABCRecord, ABCRecordBatch, ABCRecordBatchBuilder +from kafka.record.util import calc_crc32 from kafka.codec import ( gzip_encode, snappy_encode, lz4_encode, lz4_encode_old_kafka, diff --git a/kafka/record/memory_records.py b/kafka/record/memory_records.py index 56aa51f..cb1cc01 100644 --- a/kafka/record/memory_records.py +++ b/kafka/record/memory_records.py @@ -22,9 +22,9 @@ import struct from kafka.errors import CorruptRecordException -from .abc import ABCRecords -from .legacy_records import LegacyRecordBatch, LegacyRecordBatchBuilder -from .default_records import DefaultRecordBatch, DefaultRecordBatchBuilder +from kafka.record.abc import ABCRecords +from kafka.record.legacy_records import LegacyRecordBatch, LegacyRecordBatchBuilder +from kafka.record.default_records import DefaultRecordBatch, DefaultRecordBatchBuilder class MemoryRecords(ABCRecords): diff --git a/kafka/record/util.py b/kafka/record/util.py index 88135f1..55d7adb 100644 --- a/kafka/record/util.py +++ b/kafka/record/util.py @@ -1,6 +1,6 @@ import binascii -from ._crc32c import crc as crc32c_py +from kafka.record._crc32c import crc as crc32c_py def encode_varint(value, write): |