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

Commit

Permalink
src/sage/manifolds/differentiable/examples/real_line.py: Use declare_…
Browse files Browse the repository at this point in the history
…subset
  • Loading branch information
mkoeppe committed May 2, 2021
1 parent a6a7f02 commit 0cc9eb8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sage/manifolds/differentiable/examples/real_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,7 @@ def __init__(self, lower, upper, ambient_interval=None,
if upper > ambient_interval.upper_bound():
raise ValueError("the upper bound is larger than that of "
+ "the containing interval")
self._supersets.update(ambient_interval._supersets)
for sd in ambient_interval._supersets:
sd._subsets.add(self)
self.declare_subset(ambient_interval)
ambient_interval._top_subsets.add(self)
t = ambient_interval.canonical_coordinate()
if lower != minus_infinity:
Expand Down

0 comments on commit 0cc9eb8

Please sign in to comment.