##// END OF EJS Templates
pathencode: hashlib.sha1() takes bytes not str on Python 3...
Augie Fackler -
r38066:4fccc73c default
parent child Browse files
Show More
@@ -678,7 +678,7 b' static int sha1hash(char hash[20], const'
678 }
678 }
679 }
679 }
680
680
681 shaobj = PyObject_CallFunction(shafunc, "s#", str, len);
681 shaobj = PyObject_CallFunction(shafunc, PY23("s#", "y#"), str, len);
682
682
683 if (shaobj == NULL)
683 if (shaobj == NULL)
684 return -1;
684 return -1;
General Comments 0
You need to be logged in to leave comments. Login now