Skip to content

Commit c61e517

Browse files
committed
PR 35982: no elif after return
1 parent 3e6ea2c commit c61e517

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/graphs/domination.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def dominating_sets(g, k=1, independent=False, total=False,
356356
if not k:
357357
yield list(g)
358358
return
359-
elif k < 0:
359+
if k < 0:
360360
raise ValueError("the domination distance must be a non-negative integer")
361361

362362
from sage.numerical.mip import MixedIntegerLinearProgram
@@ -991,7 +991,7 @@ def tree_search(H, plng, dom, i):
991991
# the empty set/list is the only minimal DS of the empty set
992992
yield set()
993993
return
994-
elif k > 1:
994+
if k > 1:
995995
# We build a graph H with an edge between u and v if these vertices are
996996
# at distance at most k in G
997997
H = G.__class__(G.order())

0 commit comments

Comments
 (0)