diff --git a/src/sage/features/csdp.py b/src/sage/features/csdp.py index e8aa55e50ea..8f2e18dc182 100644 --- a/src/sage/features/csdp.py +++ b/src/sage/features/csdp.py @@ -59,7 +59,7 @@ def is_functional(self): tf_name = tmp_filename() with open(tf_name, 'wb') as tf: - tf.write("2\n1\n1 1".encode()) + tf.write(b"2\n1\n1 1") with open(os.devnull, 'wb') as devnull: command = ['theta', tf_name] try: diff --git a/src/sage/graphs/isgci.py b/src/sage/graphs/isgci.py index 440135956c3..2315ea4679d 100644 --- a/src/sage/graphs/isgci.py +++ b/src/sage/graphs/isgci.py @@ -818,7 +818,7 @@ def _parse_db(self): sage: graph_classes._parse_db() """ - import xml.etree.cElementTree as ET + import xml.etree.ElementTree as ET from sage.graphs.graph import Graph data_dir = os.path.dirname(DatabaseGraphs().absolute_filename())