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

Commit

Permalink
Merge #31764
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed May 19, 2021
2 parents e7f7a7d + 2d7fda7 commit 8d3ad85
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/sage/manifolds/subset.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
r"""
Subsets of Topological Manifolds
Expand Down Expand Up @@ -2184,11 +2185,9 @@ def label(element):
if not others:
return res
for other in others[:-1]:
old, res = res, res._intersection_subset(other)
res = res._intersection_subset(other)
# The last one gets the name
other = others[-1]
old, res = res, res._intersection_subset(other, name=name, latex_name=latex_name)
return res
return res._intersection_subset(others[-1], name=name, latex_name=latex_name)

@staticmethod
def _reduce_intersection_members(subsets):
Expand Down Expand Up @@ -2416,11 +2415,9 @@ def label(element):
if not others:
return res
for other in others[:-1]:
old, res = res, res._union_subset(other)
res = res._union_subset(other)
# The last one gets the name
other = others[-1]
old, res = res, res._union_subset(other, name=name, latex_name=latex_name)
return res
return res._union_subset(others[-1], name=name, latex_name=latex_name)

@staticmethod
def _reduce_union_members(subsets):
Expand Down

0 comments on commit 8d3ad85

Please sign in to comment.