Skip to content

Commit 5edb610

Browse files
committed
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 <alexander.nelson@nist.gov>
1 parent 4c68051 commit 5edb610

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/src/isomorphic_diff.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ def _report(
7979
https://rdflib.readthedocs.io/en/stable/apidocs/rdflib.html#module-rdflib.compare
8080
"""
8181
for line in sorted(graph.serialize(format="nt").splitlines()):
82-
if line.strip() == b"":
82+
if line.strip() == "":
8383
continue
84-
_logger.debug("%s %s", diff_symbol, line.decode("ascii"))
84+
_logger.debug("%s %s", diff_symbol, line)
8585

8686
#_report("1", g1)
8787
#_report("2", g2)

0 commit comments

Comments
 (0)