Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

remove obsolete md5 import routine #2468

Merged
merged 1 commit into from
Aug 1, 2014

Conversation

felixonmars
Copy link
Contributor

The old md5 module was deprecated since Python 2.5, and we even didn't
support that version already. The current implementation in
boto/utils.py will not even work under Python 2.4 because of the name
"md5" imported from md5 module was replaced by the md5 module in the
following routine, which will cause errors.

This PR just replaced the routine with a simple import from hashlib, which will work flawlessly in Python 2.5+ and 3.*.

The old md5 module was deprecated since Python 2.5, and we even didn't
support that version already. The current implementation in
boto/utils.py will not even work under Python 2.4 because of the name
"md5" imported from md5 module was replaced by the md5 module in the
following routine, which will cause errors.
@danielgtaylor danielgtaylor self-assigned this Aug 1, 2014
@danielgtaylor
Copy link
Member

This looks great, thanks! 👍

danielgtaylor added a commit that referenced this pull request Aug 1, 2014
Remove obsolete md5 import routine. Fixes #2468.
@danielgtaylor danielgtaylor merged commit 9808a77 into boto:develop Aug 1, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants