##// END OF EJS Templates
pathencode: remove unused variable...
Augie Fackler -
r38125:f7a03989 default
parent child Browse files
Show More
@@ -655,14 +655,7 b' static int sha1hash(char hash[20], const'
655 PyObject *shaobj, *hashobj;
655 PyObject *shaobj, *hashobj;
656
656
657 if (shafunc == NULL) {
657 if (shafunc == NULL) {
658 PyObject *hashlib, *name = PyBytes_FromString("hashlib");
658 PyObject *hashlib = PyImport_ImportModule("hashlib");
659
660 if (name == NULL)
661 return -1;
662
663 hashlib = PyImport_ImportModule("hashlib");
664 Py_DECREF(name);
665
666 if (hashlib == NULL) {
659 if (hashlib == NULL) {
667 PyErr_SetString(PyExc_ImportError,
660 PyErr_SetString(PyExc_ImportError,
668 "pathencode failed to find hashlib");
661 "pathencode failed to find hashlib");
General Comments 0
You need to be logged in to leave comments. Login now