Mercurial > code > home > repos > homeauto
diff service/mqtt_to_rdf/candidate_binding.py @ 1667:a2347393b43e
comments, debug, dead code
author | drewp@bigasterisk.com |
---|---|
date | Tue, 21 Sep 2021 22:19:11 -0700 |
parents | 1a7c1261302c |
children | 3cf7f313b285 |
line wrap: on
line diff
--- a/service/mqtt_to_rdf/candidate_binding.py Mon Sep 20 23:20:46 2021 -0700 +++ b/service/mqtt_to_rdf/candidate_binding.py Tue Sep 21 22:19:11 2021 -0700 @@ -12,7 +12,7 @@ INDENT = ' ' -class BindingConflict(ValueError): +class BindingConflict(ValueError): # might be the same as `Inconsistent` pass @@ -56,11 +56,6 @@ raise BindingConflict(f'thought {k} would be {self.binding[k]} but another Evaluation said it should be {v}') self.binding[k] = v - def subtract(self, removeBindings: 'CandidateBinding'): - for k, v in removeBindings.binding.items(): - if k in self.binding: - del self.binding[k] - def copy(self): return CandidateBinding(self.binding.copy())