eea / odfpy

API for OpenDocument in Python
GNU General Public License v2.0
311 stars 64 forks source link

Future warning for test of element #98

Open DavidLRowe opened 4 years ago

DavidLRowe commented 4 years ago

First, thank you for this very helpful project.

Recently I began getting a warning when writing out a file: \odf\element.py:319: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead. if self.data:

I didn't see that this issue had been raised, though perhaps you are already aware of it.