setuptools icon indicating copy to clipboard operation
setuptools copied to clipboard

Simplify FileList._safe_path for PathLike support

Open jaraco opened this issue 1 year ago • 1 comments

  • In FileList.append
  • Refactor _safe_path into three functions. Remove support for bytes. Allow for path to be PathLike.

Summary of changes

Supports pypa/distutils#237.

Pull Request Checklist

jaraco avatar Mar 03 '24 10:03 jaraco

I wonder if anyone is still dependent on the support for bytes decoding. I guess we should either retain compatibility or declare the change as backward-incompatible. I'll do the latter; we can back out the change (restore support for bytes) if it turns out to cause any trouble.

jaraco avatar May 10 '24 15:05 jaraco