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

Commit

Permalink
Trac #31273: remove deprecated "form" input
Browse files Browse the repository at this point in the history
  • Loading branch information
mjungmath committed Jan 21, 2021
1 parent 13b4090 commit 5381682
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions src/sage/manifolds/differentiable/bundle_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ def _derive_trivial(self, v, s):
res[frame, j] = res_comp
return res

def add_connection_form(self, i, j, form=None, frame=None):
def add_connection_form(self, i, j, frame=None):
r"""
Return the connection form `\omega^j_i` in a given frame for
assignment.
Expand Down Expand Up @@ -816,16 +816,9 @@ def add_connection_form(self, i, j, form=None, frame=None):
" a frame on the {}".format(self._base_space))
self._connection_forms[frame] = self._new_forms(frame)
self._del_derived() # deletes the derived quantities
if form:
# TODO: Remove input `form` in Sage 9.3
from sage.misc.superseded import deprecation
msg = "the input 'form' is outdated and will be removed in a "
msg += "future version of Sage"
deprecation(30208, msg)
self._connection_forms[frame][(i, j)] = form.copy()
return self._connection_forms[frame][(i, j)]

def set_connection_form(self, i, j, form=None, frame=None):
def set_connection_form(self, i, j, frame=None):
r"""
Return the connection form `\omega^j_i` in a given frame for
assignment.
Expand Down Expand Up @@ -894,13 +887,7 @@ def set_connection_form(self, i, j, form=None, frame=None):
To keep them, use the method :meth:`add_connection_form` instead.
"""
if form:
# TODO: Remove input `form` in Sage 9.3
from sage.misc.superseded import deprecation
msg = "the input 'form' is outdated and will be removed in a "
msg += "future version of Sage"
deprecation(30208, msg)
omega = self.add_connection_form(i, j, form=form, frame=frame)
omega = self.add_connection_form(i, j, frame=frame)
self.del_other_forms(frame)
return omega

Expand Down

0 comments on commit 5381682

Please sign in to comment.