D6258: packaging: coerce paths to strings
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Wed Apr 17 05:49:11 EDT 2019
indygreg added a comment.
In https://phab.mercurial-scm.org/D6258#91055, @durin42 wrote:
> Argh. This change appears to be wrong (!) so I'm going to drop it.
Eh? I don't see anything wrong with this. Casting a `pathlib.Path` to `str` should just work! In fact, it is necessary for older Python 3, as there was a long tail of stdlib functions that didn't accept `pathlib.*` when those types were first introduced. I believe 3.7 was the first release that fixed them all.
To: durin42, #hg-reviewers, pulkit
Cc: indygreg, mercurial-devel
More information about the Mercurial-devel