Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
merge accepting and rejecting functors in all cases
Browse files Browse the repository at this point in the history
  • Loading branch information
behackl committed Jan 23, 2016
1 parent aeae8f3 commit c4a0e22
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/sage/symbolic/subring.py
Original file line number Diff line number Diff line change
Expand Up @@ -758,8 +758,7 @@ def merge(self, other):
elif type(self) == type(other):
return type(self)(self.vars & other.vars)
elif isinstance(other, SymbolicSubringRejectingVarsFunctor):
if not (self.vars & other.vars):
return self
return type(self)(self.vars - other.vars)


def _apply_functor(self, R):
Expand Down Expand Up @@ -965,8 +964,7 @@ def merge(self, other):
elif type(self) == type(other):
return type(self)(self.vars | other.vars)
elif isinstance(other, SymbolicSubringAcceptingVarsFunctor):
if not (self.vars & other.vars):
return other
return type(other)(other.vars - self.vars)


def _apply_functor(self, R):
Expand Down

0 comments on commit c4a0e22

Please sign in to comment.