From 745696cba120464280afa1c61020be735d456e00 Mon Sep 17 00:00:00 2001 From: Michael Chisholm Date: Sun, 14 Feb 2021 19:25:59 -0500 Subject: [PATCH] Remove "canonical" from a couple more places in docstrings which I missed. --- stix2/equivalence/pattern/transform/comparison.py | 5 ++--- stix2/equivalence/pattern/transform/observation.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/stix2/equivalence/pattern/transform/comparison.py b/stix2/equivalence/pattern/transform/comparison.py index ad10a52..93a80e4 100644 --- a/stix2/equivalence/pattern/transform/comparison.py +++ b/stix2/equivalence/pattern/transform/comparison.py @@ -147,9 +147,8 @@ class OrderDedupeTransformer( ComparisonExpressionTransformer, ): """ - Canonically order the children of all nodes in the AST. Because the - deduping algorithm is based on sorted data, this transformation also does - deduping. + Order the children of all nodes in the AST. Because the deduping algorithm + is based on sorted data, this transformation also does deduping. E.g.: A and A => A diff --git a/stix2/equivalence/pattern/transform/observation.py b/stix2/equivalence/pattern/transform/observation.py index 7b2603a..a92fff8 100644 --- a/stix2/equivalence/pattern/transform/observation.py +++ b/stix2/equivalence/pattern/transform/observation.py @@ -234,7 +234,7 @@ class OrderDedupeTransformer( ObservationExpressionTransformer, ): """ - Canonically order AND/OR expressions, and dedupe ORs. E.g.: + Order AND/OR expressions, and dedupe ORs. E.g.: A or A => A B or A => A or B