Open jaraco opened 2 weeks ago
I realized I've been copy/pasting the removeprefix/removesuffix code to a number of projects:
So I decided to release jaraco.compat 4.1 with a routine to do the work.
As it turns out, path
, distutils
, and backports.tarfile
don't currently have any dependencies, so I'm going to leave them alone, but I've updated the others to use the renewed compat library.
@bswck has discovered that use of datetime.UTC
isn't viable until Python 3.11. Also, tests are passing on Python 3.8, so there's not good coverage.
Currently, the codebase uses some constructs that are incompatible with Python 3.8 (namely str.removeprefix and possible removesuffix). This usage will need to be adapted and verified on Python 3.8.