mercurial/cext/pathencode.c
changeset 38055 4fccc73ce2f6
parent 38054 92ac9cf78dba
child 38056 9aaa74f9eb87
equal deleted inserted replaced
38054:92ac9cf78dba 38055:4fccc73ce2f6
   676 			                "attribute 'sha1'");
   676 			                "attribute 'sha1'");
   677 			return -1;
   677 			return -1;
   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;
   685 
   685 
   686 	hashobj = PyObject_CallMethod(shaobj, "digest", "");
   686 	hashobj = PyObject_CallMethod(shaobj, "digest", "");