##// END OF EJS Templates
sha1dc: use proper string functions on Python 2/3...
Gregory Szorc -
r44542:29a110e2 default
parent child Browse files
Show More
@@ -95,7 +95,7 b' static PyObject *pysha1ctx_hexdigest(pys'
95 hexhash[i * 2] = hexdigit[hash[i] >> 4];
95 hexhash[i * 2] = hexdigit[hash[i] >> 4];
96 hexhash[i * 2 + 1] = hexdigit[hash[i] & 15];
96 hexhash[i * 2 + 1] = hexdigit[hash[i] & 15];
97 }
97 }
98 return PyString_FromStringAndSize(hexhash, 40);
98 return PY23(PyString_FromStringAndSize, PyUnicode_FromStringAndSize)(hexhash, 40);
99 }
99 }
100
100
101 static PyTypeObject sha1ctxType;
101 static PyTypeObject sha1ctxType;
General Comments 0
You need to be logged in to leave comments. Login now