Skip to content

Commit ddda2f4

Browse files
committed
trac #33959: another change
1 parent 905a6bb commit ddda2f4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/sage/sandpiles/sandpile.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4275,10 +4275,8 @@ def __init__(self, S, D):
42754275
if type(D) in [dict, SandpileDivisor, SandpileConfig]:
42764276
dict.__init__(self, dict(D))
42774277
elif isinstance(D, list):
4278-
div = {}
4279-
for i, v in enumerate(S.vertices()):
4280-
div[v] = D[i]
4281-
dict.__init__(self, div)
4278+
div = {v: D[i] for i, v in enumerate(S.vertices())}
4279+
dict.__init__(self, div)
42824280
else:
42834281
raise SyntaxError(D)
42844282

0 commit comments

Comments
 (0)