D3587: pathencode: fix importing hashlib on Python 3

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Fri May 18 22:35:38 EDT 2018


yuja added a comment.


  Queued, thanks.
  
  >   		if (name == NULL)
  >   			return -1;
  > 
  > 
  > - hashlib = PyImport_Import(name); +		hashlib = PyImport_ImportModule("hashlib"); 		Py_DECREF(name);
  
  Nit: `name` is no longer used.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3587

To: durin42, #hg-reviewers
Cc: yuja, mercurial-devel


More information about the Mercurial-devel mailing list