Skip to content
This repository was archived by the owner on Oct 25, 2021. It is now read-only.

Unicode type is Py2 only#2

Open
iyesin wants to merge 1 commit into
Udaptive:acrobatiqfrom
iyesin:acrobatiq
Open

Unicode type is Py2 only#2
iyesin wants to merge 1 commit into
Udaptive:acrobatiqfrom
iyesin:acrobatiq

Conversation

@iyesin
Copy link
Copy Markdown

@iyesin iyesin commented Apr 20, 2018

fixes exception like:

name 'unicode' is not defined: NameError
Traceback (most recent call last):
  File "/var/task/Submitter.py", line 40, in handler
    producer.send(name.encode(encoding='ascii'))
  File "/var/task/kinesis_producer/producer.py", line 45, in send
    if isinstance(record, unicode):
NameError: name 'unicode' is not defined

while using python3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant