Skip to content

Commit

Permalink
sagemath#33255: remove trailing whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoudert committed Feb 15, 2023
1 parent a7343d6 commit 05bff63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/graphs/generic_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1272,14 +1272,14 @@ def copy(self, weighted=None, data_structure=None, sparse=None, immutable=None,
if (isinstance(self._backend, StaticSparseBackend) and
(data_structure == 'static_sparse' or data_structure is None)):
return self

if data_structure is None:
from sage.graphs.base.dense_graph import DenseGraphBackend
if isinstance(self._backend, DenseGraphBackend):
data_structure = "dense"
else:
data_structure = "sparse"

G = self.__class__(self, name=self.name(), pos=copy(self._pos),
weighted=weighted, hash_labels=hash_labels,
data_structure=data_structure)
Expand Down

0 comments on commit 05bff63

Please sign in to comment.