Ticket #12769: 12769.patch

File 12769.patch, 1.4 KB (added by roed, 10 years ago)
  • sage/databases/cremona.py

    # HG changeset patch
    # User David Roe <roed.math@gmail.com>
    # Date 1332937431 -3600
    # Node ID 4871f3e62e0a024a0f0119bbea730654eb2da059
    # Parent  4303cdcbd5e075a376fb3584d5976cbb9e13c7c1
    Fix an omission in the new Cremona database code.
    
    diff --git a/sage/databases/cremona.py b/sage/databases/cremona.py
    a b  
    619619            Elliptic Curve defined by y^2 + y = x^3 - x^2 - 10*x - 20 over Rational Field
    620620            sage: c.elliptic_curve('12001a1')    # optional - database_cremona_ellcurve
    621621            Elliptic Curve defined by y^2 + x*y = x^3 - 101*x + 382 over Rational Field
     622            sage: c.elliptic_curve('48c1')
     623            Traceback (most recent call last):
     624            ...
     625            ValueError: There is no elliptic curve with label 48c1 in the database (note: use lower case letters!)
    622626        """
    623627        N, iso, num = parse_cremona_label(label)
    624628        label = str(N)+iso+str(num)
     
    657661                message = "There is no elliptic curve with label " \
    658662                    + label + " in the default database; try installing " \
    659663                    + "the optional package database_cremona_ellcurve which " \
    660                     + "contains the complete cremona database"
     664                    + "contains the complete Cremona database"
     665            raise ValueError(message)
    661666
    662667    def iter(self, conductors):
    663668        """