##// END OF EJS Templates
pathencode: fix importing hashlib on Python 3...
Augie Fackler -
r38065:92ac9cf7 default
parent child Browse files
Show More
@@ -660,7 +660,7 b' static int sha1hash(char hash[20], const'
660 if (name == NULL)
660 if (name == NULL)
661 return -1;
661 return -1;
662
662
663 hashlib = PyImport_Import(name);
663 hashlib = PyImport_ImportModule("hashlib");
664 Py_DECREF(name);
664 Py_DECREF(name);
665
665
666 if (hashlib == NULL) {
666 if (hashlib == NULL) {
General Comments 0
You need to be logged in to leave comments. Login now