ttempe / chinese-support-addon

Addon for Anki2 that makes easier to input Chinese, in the spirit of batterseapower’s pinyin-toolkit for Anki1
https://github.com/ttempe/chinese-support-addon/wiki
47 stars 19 forks source link

use hashlib.md5 instead of md5, if possible #63

Closed muellert closed 7 years ago

muellert commented 8 years ago

md5 is deprecated, it should be hashlib.md5 instead. This pull requests changes the code accordingly by trying to import hashlib.md5 first. Works at least with Python 2.6 and 2.7.

Enjoy!