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

Encoding fix for auth in python3 for issue #52 #54

Merged
merged 3 commits into from
Dec 27, 2021

Conversation

sumdog
Copy link

@sumdog sumdog commented Dec 14, 2021

No description provided.

xmpp/auth.py Outdated
@@ -37,10 +37,12 @@ def H(some):
if IS_PYTHON3 and isinstance(some, str):
some = some.encode("utf-8")
return md5(some).digest()

Copy link
Collaborator

Choose a reason for hiding this comment

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

Keep the whitespace consistent between HH&H and H&C (either both have whitespace, or neither have whitespace).

Bonus points for removing the print("HH:some:", some) from HH, that looks like left over debugging from #45.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Hi. I've just addressed this with e6f4667.

@normanr normanr linked an issue Dec 27, 2021 that may be closed by this pull request
@amotl
Copy link
Collaborator

amotl commented Dec 27, 2021

Dear Sumit and Norman,

both thanks for this contribution and for the bump.

With kind regards,
Andreas.

@amotl amotl merged commit 5813493 into xmpppy:master Dec 27, 2021
@amotl amotl mentioned this pull request Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

authentication failure with python3.8, but works with python2.7
3 participants