D3587: pathencode: fix importing hashlib on Python 3

Yuya Nishihara yuya at tcha.org
Fri May 18 22:30:05 EDT 2018


Queued, thanks.

>  		if (name == NULL)
>  			return -1;
>  
> -		hashlib = PyImport_Import(name);
> +		hashlib = PyImport_ImportModule("hashlib");
>  		Py_DECREF(name);

Nit: `name` is no longer used.


More information about the Mercurial-devel mailing list