Skip to content

Commit

Permalink
Merge pull request #7 from defcube/py3k
Browse files Browse the repository at this point in the history
Made python 3 compatable without breaking any python 2 usage
  • Loading branch information
jeremyschlatter committed Oct 6, 2014
2 parents fc339e5 + fbddf2a commit 62c50ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
from setuptools import setup, find_packages
import md5 # fix for "No module named _md5" error
try:
import md5 # fix for "No module named _md5" error
except ImportError:
# python 3 moved md5
from hashlib import md5


setup(name='expiringdict',
Expand Down

2 comments on commit 62c50ce

@jandd
Copy link

@jandd jandd commented on 62c50ce Nov 13, 2015

Choose a reason for hiding this comment

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

hashlib.md5 is available since Python 2.5, do you really want to support even older versions?

@jandd
Copy link

@jandd jandd commented on 62c50ce Nov 13, 2015

Choose a reason for hiding this comment

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

Please sign in to comment.