cjcodeproj / medialibrary

Python code to read XML media files
MIT License
2 stars 0 forks source link

ElementTree DepreciationWarning #174

Closed cjcodeproj closed 4 months ago

cjcodeproj commented 4 months ago

In the following code block:

https://github.com/cjcodeproj/medialibrary/blob/88c35f126d7af62ca6ed993bde384142b618a7b0/src/media/data/media/contents/generic/catalog.py#L167-L176

There is a depreciation warning for testing the variable in_chunk for truth, compared to checking the variable against the None type.

cjcodeproj commented 4 months ago

Found a reference to the change:

https://docs.python.org/3.12/whatsnew/3.12.html#pending-removal-in-python-3-14

cjcodeproj commented 4 months ago

Commit:

https://github.com/cjcodeproj/medialibrary/commit/6e1c02d85b342b897c46e48a787752c7899a3e8c