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

🚑 🐍3 Encode Unicode-Objects Before Hashing #30

Merged
merged 1 commit into from
Feb 28, 2018
Merged

🚑 🐍3 Encode Unicode-Objects Before Hashing #30

merged 1 commit into from
Feb 28, 2018

Conversation

shnizzedy
Copy link
Contributor

Fixing a Python3 compatibility bug in VarWatcher class:

  • In Python3, hashlib.md5(json.dumps(val).hexdigest() returned

TypeError: Unicode-objects must be encoded before hashing

for (at least) strings, lists, and dictionaries.
Add .encode("utf8") to rectify.

Related #10

- In Python3, `hashlib.md5(json.dumps(val).hexdigest()` returned

> TypeError: Unicode-objects must be encoded before hashing

  for (at least) strings, lists, and dictionaries.
  Add `.encode("utf8")` to rectify.

Related #10
shnizzedy added a commit to ChildMindInstitute/tingle-pilot-study that referenced this pull request Feb 27, 2018
- Load data
- Break out iteration blocks
- Create perceptrons
- Train perceptrons
- Activate perceptrons

Ref #1, #4, shnizzedy/pixiedust_node@36117da, pixiedust/pixiedust_node#30
@glynnbird
Copy link
Member

Thanks for the PR @shnizzedy !

@glynnbird glynnbird merged commit f1b9c45 into pixiedust:master Feb 28, 2018
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.

2 participants