fleetingbytes / rtfparse

RTF Parser
MIT License
12 stars 7 forks source link

remove `removesuffix` to support python 3.8 #33

Open th3w1zard1 opened 1 month ago

th3w1zard1 commented 1 month ago

I needed a rtf parser for python 3.8 and this was the closest library I could find that met my purposes. Python 3.8 is the last supported python version on windows 7 which unfortunately I need to target.

This library contained a single incompatibility: removesuffix. Like most of 3.9's changes, it can easily be rewritten to support 3.8's functionality.

I have been using this library for over an hour and have not found any other incompatibilities with python 3.8.

if there are any other code segments this PR can backport please let me know.