-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for pathlib #114
Comments
I just tried this: import pathlib
import polib
pth = pathlib.Path(r"C:\whatever\sample.po")
pofile = polib.pofile(pth)
for entry in pofile:
print(entry.msgid, entry.msgstr) Worked fine in Python 3.9. Is there anything you've found to not Just Work™ with |
Good to know, this can be the first test to add.
There's no info about |
AFAIK, So:
|
Hi, |
types-polib package is built from typeshed project. I've added a PR with support for |
It would be great to add the ability to read file path as
pathlib.Path
.The text was updated successfully, but these errors were encountered: