Mercurial > code > home > repos > homeauto
changeset 1654:d47832373b34
__nonzero__ is called __bool__ in py3! thanks for nothing, linters
author | drewp@bigasterisk.com |
---|---|
date | Sun, 19 Sep 2021 13:21:15 -0700 |
parents | e7d594c065d4 |
children | 15e195fb24bb |
files | service/mqtt_to_rdf/stmt_chunk.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/service/mqtt_to_rdf/stmt_chunk.py Sun Sep 19 13:20:39 2021 -0700 +++ b/service/mqtt_to_rdf/stmt_chunk.py Sun Sep 19 13:21:15 2021 -0700 @@ -138,7 +138,7 @@ def noPredicatesAppear(self, preds: Iterable[Node]) -> bool: return self.allPredicatesExceptFunctions().isdisjoint(preds) - def __nonzero__(self): + def __bool__(self): return bool(self.chunksUsedByFuncs) or bool(self.staticChunks) or bool(self.patternChunks) def __repr__(self):