From 5edb610484530e0879b3c6c2b4d4b7552446d4c8 Mon Sep 17 00:00:00 2001 From: Alex Nelson Date: Wed, 27 Oct 2021 14:50:38 -0400 Subject: [PATCH] Update string type from graph.serialize The type has changed from bytes() to str() since the isomorphic diff sample file was originally written. Signed-off-by: Alex Nelson --- tests/src/isomorphic_diff.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/src/isomorphic_diff.py b/tests/src/isomorphic_diff.py index 7d0c7c7..0a2c0ce 100644 --- a/tests/src/isomorphic_diff.py +++ b/tests/src/isomorphic_diff.py @@ -79,9 +79,9 @@ def _report( https://rdflib.readthedocs.io/en/stable/apidocs/rdflib.html#module-rdflib.compare """ for line in sorted(graph.serialize(format="nt").splitlines()): - if line.strip() == b"": + if line.strip() == "": continue - _logger.debug("%s %s", diff_symbol, line.decode("ascii")) + _logger.debug("%s %s", diff_symbol, line) #_report("1", g1) #_report("2", g2)