Skip to content

Commit 2f7cd9b

Browse files
Newtech66vincentmacri
authored andcommitted
Made suggested changes
1 parent fc9916c commit 2f7cd9b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/sage/categories/pushout.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3296,7 +3296,8 @@ def __init__(self, polys, names, embeddings=None, structures=None,
32963296
self.latex_names = latex_names
32973297
kwds_self = dict(kwds.items())
32983298
if 'implementation' in kwds_self:
3299-
self.implementations[0] = kwds_self['implementation']
3299+
assert len(self.polys) == 1
3300+
self.implementations = [kwds_self['implementation']]
33003301
del kwds_self['implementation']
33013302
self.kwds = kwds_self
33023303

@@ -3536,8 +3537,6 @@ def merge(self, other):
35363537
if 'implementation' in kwds_self:
35373538
del kwds_self['implementation']
35383539
kwds_other = dict(other.kwds.items())
3539-
if 'implementation' in kwds_other:
3540-
del kwds_other['implementation']
35413540
if (isinstance(self.polys[0], Integer)
35423541
and isinstance(other.polys[0], Integer)
35433542
and self.embeddings == other.embeddings == [None]

0 commit comments

Comments
 (0)