# HG changeset patch # User drewp@bigasterisk.com # Date 1632082875 25200 # Node ID d47832373b34d94218fa8be57eb5ad935c3fe715 # Parent e7d594c065d4622e5e55abe03166a5b4688ba837 __nonzero__ is called __bool__ in py3! thanks for nothing, linters diff -r e7d594c065d4 -r d47832373b34 service/mqtt_to_rdf/stmt_chunk.py --- 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):