Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ruff codes UP012 and UP023 #37659

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/sage/features/csdp.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

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")

Check warning on line 62 in src/sage/features/csdp.py

View check run for this annotation

Codecov / codecov/patch

src/sage/features/csdp.py#L62

Added line #L62 was not covered by tests
with open(os.devnull, 'wb') as devnull:
command = ['theta', tf_name]
try:
Expand Down
2 changes: 1 addition & 1 deletion src/sage/graphs/isgci.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
Loading