Skip to content

Commit 99052e8

Browse files
author
Xavier Caruso
committed
use the dict constructor
1 parent 09e14fa commit 99052e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/sets/primes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ def __classcall__(cls, modulus=1, classes=None, exceptions=None):
124124
classes = [ZZ(1)]
125125
if exceptions is None:
126126
exceptions = {}
127-
if isinstance(exceptions, (tuple, list)):
128-
exceptions = {x: b for x, b in exceptions}
127+
if not isinstance(exceptions, dict):
128+
exceptions = dict(exceptions)
129129

130130
if modulus == 0:
131131
for c in classes:

0 commit comments

Comments
 (0)