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

Commit

Permalink
20790: removed constructor imports
Browse files Browse the repository at this point in the history
Can use the ambient space curve function instead.
  • Loading branch information
gsjorgenson committed Jul 30, 2016
1 parent ee363e4 commit c69bcd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/sage/schemes/curves/affine_curve.py
Expand Up @@ -263,9 +263,8 @@ def projection(self, indices, newvariables=True):
l[indices[i]] = AA2.gens()[i]
phi = K(l)
G = [phi(f) for f in J.gens()]
from constructor import Curve
try:
C = Curve(G, AA2)
C = AA2.curve(G)
except (TypeError, ValueError):
C = AA2.subscheme(G)
return tuple([psi, C])
Expand Down
3 changes: 1 addition & 2 deletions src/sage/schemes/curves/projective_curve.py
Expand Up @@ -295,8 +295,7 @@ def projection(self, P=None):
l.insert(j, 0)
phi = K(l)
G = [phi(f) for f in J.gens()]
from constructor import Curve
C = Curve(G, PP2)
C = PP2.curve(G)
return tuple([psi, C])

def plane_projection(self):
Expand Down

0 comments on commit c69bcd1

Please sign in to comment.