Skip to content

Commit

Permalink
Merge pull request #947 from ods/kafka-python-cleanup
Browse files Browse the repository at this point in the history
Cleanup after kafka-python merge
  • Loading branch information
ods authored Nov 29, 2023
2 parents 8814e7b + fdba764 commit a25e5c2
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 2,543 deletions.
2 changes: 1 addition & 1 deletion aiokafka/consumer/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class AIOKafkaConsumer:
sasl_plain_password (str): password for SASL ``PLAIN`` authentication.
Default: None
sasl_oauth_token_provider (~aiokafka.abc.AbstractTokenProvider):
OAuthBearer token provider instance. (See :mod:`aiokafka.oauth`).
OAuthBearer token provider instance.
Default: None
Note:
Expand Down
1,189 changes: 0 additions & 1,189 deletions aiokafka/coordinator/base.py

This file was deleted.

984 changes: 0 additions & 984 deletions aiokafka/coordinator/consumer.py

This file was deleted.

69 changes: 0 additions & 69 deletions aiokafka/coordinator/heartbeat.py

This file was deleted.

38 changes: 0 additions & 38 deletions aiokafka/oauth.py

This file was deleted.

3 changes: 1 addition & 2 deletions aiokafka/producer/producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ class AIOKafkaProducer:
sasl_plain_password (str): password for SASL ``PLAIN`` authentication.
Default: :data:`None`
sasl_oauth_token_provider (:class:`~aiokafka.abc.AbstractTokenProvider`):
OAuthBearer token provider instance. (See
:mod:`aiokafka.oauth`).
OAuthBearer token provider instance.
Default: :data:`None`
Note:
Expand Down
30 changes: 0 additions & 30 deletions aiokafka/protocol/frame.py

This file was deleted.

5 changes: 2 additions & 3 deletions aiokafka/protocol/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from aiokafka.errors import UnsupportedCodecError
from aiokafka.util import WeakMethod

from .frame import KafkaBytes
from .struct import Struct
from .types import Int8, Int32, UInt32, Int64, Bytes, Schema, AbstractType

Expand Down Expand Up @@ -186,7 +185,7 @@ class MessageSet(AbstractType):
@classmethod
def encode(cls, items, prepend_size=True):
# RecordAccumulator encodes messagesets internally
if isinstance(items, (io.BytesIO, KafkaBytes)):
if isinstance(items, io.BytesIO):
size = Int32.decode(items)
if prepend_size:
# rewind and return all the bytes
Expand Down Expand Up @@ -234,7 +233,7 @@ def decode(cls, data, bytes_to_read=None):

@classmethod
def repr(cls, messages):
if isinstance(messages, (KafkaBytes, io.BytesIO)):
if isinstance(messages, io.BytesIO):
offset = messages.tell()
decoded = cls.decode(messages)
messages.seek(offset)
Expand Down
194 changes: 0 additions & 194 deletions aiokafka/protocol/parser.py

This file was deleted.

Loading

0 comments on commit a25e5c2

Please sign in to comment.