Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change append to extend to fix bytestream error #302

Merged
merged 2 commits into from
Mar 3, 2022
Merged

change append to extend to fix bytestream error #302

merged 2 commits into from
Mar 3, 2022

Conversation

jmklix
Copy link
Member

@jmklix jmklix commented Feb 17, 2022

Issue #, if available:
#295

Description of changes:
change append to extend to fix bytestream error

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@jmklix jmklix linked an issue Feb 17, 2022 that may be closed by this pull request
@jmklix jmklix merged commit 6ca6c73 into master Mar 3, 2022
@jmklix jmklix deleted the Issue_295 branch March 3, 2022 19:30
while True: # Python does not have do-while
try:
response.append(self._convert_to_int_py3(ssl_sock.read(1)))
ssl_sock_tmp = self._convert_to_int_py3(ssl_sock.read(1))
if ssl_sock_tmp is list:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This condition is always False!

ssl_sock_tmp = []

ssl_sock_tmp is list # False
type(ssl_sock_tmp) is list # True
isinstance(ssl_sock_tmp, list) # True

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @j123b567 - you are right, I just tested using a simple program and it always returns false even if it is a list. I'll make a PR to adjust this so it correctly evaluates the type. Thank you for letting us know!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR made: #307
Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

greengrass discovery throwing bytestream issue
3 participants