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

Commit

Permalink
Merge branch 'public/ticket/26403' in 9.0.b1
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Oct 13, 2019
2 parents 0f20b37 + 5a33013 commit 0a34ee9
Show file tree
Hide file tree
Showing 331 changed files with 12 additions and 439 deletions.
Expand Up @@ -15,7 +15,6 @@ AUTHOR:
- Simon King (2011-03-23): Trac ticket :trac:`7797`
"""
from __future__ import print_function

from sage.libs.singular.function import lib, singular_function
from sage.misc.misc import repr_lincomb
Expand Down
1 change: 0 additions & 1 deletion src/sage/algebras/quatalg/quaternion_algebra_cython.pyx
Expand Up @@ -20,7 +20,6 @@ AUTHORS:
# (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import absolute_import

from sage.rings.integer_ring import ZZ
from sage.rings.rational_field import QQ
Expand Down
1 change: 0 additions & 1 deletion src/sage/arith/multi_modular.pyx
Expand Up @@ -11,7 +11,6 @@ Utility classes for multi-modular algorithms
# (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import absolute_import

from cysignals.memory cimport check_allocarray, check_reallocarray, sig_free

Expand Down
1 change: 1 addition & 0 deletions src/sage/arith/srange.pyx
@@ -1,3 +1,4 @@
# cython: language_level=2
"""
Ranges and the ``[1,2,..,n]`` notation
Expand Down
1 change: 0 additions & 1 deletion src/sage/calculus/integration.pyx
Expand Up @@ -25,7 +25,6 @@ AUTHORS:
# the License, or (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import print_function, absolute_import

from cysignals.signals cimport sig_on, sig_off
from sage.rings.real_double import RDF
Expand Down
1 change: 0 additions & 1 deletion src/sage/calculus/interpolators.pyx
Expand Up @@ -22,7 +22,6 @@ Development supported by NSF award No. 0702939.
#
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import absolute_import

import numpy as np
cimport numpy as np
Expand Down
1 change: 0 additions & 1 deletion src/sage/calculus/ode.pyx
Expand Up @@ -18,7 +18,6 @@ AUTHORS:
# (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import absolute_import

from cysignals.memory cimport sig_malloc, sig_free
from cysignals.signals cimport sig_on, sig_off
Expand Down
1 change: 0 additions & 1 deletion src/sage/calculus/riemann.pyx
Expand Up @@ -24,7 +24,6 @@ Development supported by NSF award No. 0702939.
#
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import print_function, absolute_import

from cysignals.signals cimport sig_on, sig_off

Expand Down
1 change: 0 additions & 1 deletion src/sage/calculus/transforms/dwt.pyx
Expand Up @@ -20,7 +20,6 @@ AUTHOR:
# (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import absolute_import

import sage.plot.all

Expand Down
1 change: 0 additions & 1 deletion src/sage/calculus/transforms/fft.pyx
Expand Up @@ -19,7 +19,6 @@ AUTHORS:
# (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import absolute_import

from cysignals.memory cimport sig_malloc, sig_free

Expand Down
2 changes: 0 additions & 2 deletions src/sage/categories/action.pyx
Expand Up @@ -53,8 +53,6 @@ AUTHOR:
# http://www.gnu.org/licenses/
#*****************************************************************************

from __future__ import absolute_import

from cpython.tuple cimport PyTuple_GET_ITEM

from .functor cimport Functor
Expand Down
2 changes: 0 additions & 2 deletions src/sage/categories/coercion_methods.pyx
Expand Up @@ -5,8 +5,6 @@ The purpose of this Cython module is to hold special coercion methods,
which are inserted by their respective categories.
"""

from __future__ import absolute_import, division, print_function

from sage.structure.element cimport Element
cimport cython

Expand Down
1 change: 0 additions & 1 deletion src/sage/categories/functor.pyx
Expand Up @@ -32,7 +32,6 @@ AUTHORS:
#
# https://www.gnu.org/licenses/
# ****************************************************************************
from __future__ import absolute_import

from . import category

Expand Down
2 changes: 0 additions & 2 deletions src/sage/categories/map.pyx
Expand Up @@ -22,8 +22,6 @@ AUTHORS:
# http://www.gnu.org/licenses/
#*****************************************************************************

from __future__ import absolute_import, print_function

from . import homset
import weakref
from sage.ext.stdsage cimport HAS_DICTIONARY
Expand Down
1 change: 0 additions & 1 deletion src/sage/categories/morphism.pyx
Expand Up @@ -19,7 +19,6 @@ AUTHORS:
# (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import print_function, absolute_import

from cpython.object cimport *
from sage.misc.constant_function import ConstantFunction
Expand Down
2 changes: 0 additions & 2 deletions src/sage/coding/binary_code.pyx
Expand Up @@ -40,8 +40,6 @@ AUTHOR:
# http://www.gnu.org/licenses/
#*****************************************************************************

from __future__ import absolute_import, print_function

from libc.string cimport memcpy
from cpython.mem cimport *
from cpython.object cimport PyObject_RichCompare
Expand Down
1 change: 0 additions & 1 deletion src/sage/coding/codecan/codecan.pyx
Expand Up @@ -91,7 +91,6 @@ is returned by generators::
# the License, or (at your option) any later version.
# http://www.gnu.org/licenses/
#*******************************************************************************
from __future__ import absolute_import
from copy import copy
from cysignals.memory cimport check_allocarray, sig_free
Expand Down
1 change: 0 additions & 1 deletion src/sage/combinat/crystals/pbw_datum.pyx
Expand Up @@ -21,7 +21,6 @@ AUTHORS:
# (at your option) any later version.
# https://www.gnu.org/licenses/
# ****************************************************************************
from __future__ import absolute_import

#from sage.misc.lazy_attribute import lazy_attribute
from sage.misc.cachefunc import cached_method
Expand Down
1 change: 0 additions & 1 deletion src/sage/combinat/crystals/spins.pyx
Expand Up @@ -41,7 +41,6 @@ representing the elements of the spin crystal by sequences of signs
#
# http://www.gnu.org/licenses/
#****************************************************************************
from __future__ import print_function

from cpython.object cimport Py_EQ, Py_NE, Py_LE, Py_GE, Py_LT, Py_GT
from cysignals.memory cimport sig_malloc, sig_free
Expand Down
1 change: 0 additions & 1 deletion src/sage/combinat/crystals/tensor_product_element.pyx
Expand Up @@ -29,7 +29,6 @@ AUTHORS:
#
# https://www.gnu.org/licenses/
#****************************************************************************
from __future__ import print_function, absolute_import

from cpython.object cimport Py_LT, Py_LE, Py_EQ, Py_NE, Py_GT, Py_GE
from sage.structure.parent cimport Parent
Expand Down
1 change: 0 additions & 1 deletion src/sage/combinat/designs/designs_pyx.pyx
Expand Up @@ -6,7 +6,6 @@ This module implements the design methods that need to be somewhat efficient.
Functions
---------
"""
from __future__ import print_function, absolute_import, division

include "sage/data_structures/bitset.pxi"

Expand Down
1 change: 0 additions & 1 deletion src/sage/combinat/designs/evenly_distributed_sets.pyx
Expand Up @@ -15,7 +15,6 @@ might want to update this database with more values.
Classes and methods
-------------------
"""
from __future__ import print_function, absolute_import

cimport cython

Expand Down
Expand Up @@ -44,7 +44,6 @@ REFERENCES:
Functions
---------
"""
from __future__ import print_function, absolute_import

from sage.misc.cachefunc import cached_function
from .orthogonal_arrays import orthogonal_array
Expand Down
2 changes: 0 additions & 2 deletions src/sage/combinat/integer_lists/invlex.pyx
Expand Up @@ -28,8 +28,6 @@ limitations and lack of robustness w.r.t. input.
# https://www.gnu.org/licenses/
# ****************************************************************************

from __future__ import print_function, absolute_import

import builtins

from sage.misc.classcall_metaclass import ClasscallMetaclass, typecall
Expand Down
1 change: 0 additions & 1 deletion src/sage/combinat/matrices/dancing_links.pyx
Expand Up @@ -77,7 +77,6 @@ There is also a method ``reinitialize`` to reinitialize the algorithm::
# (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import print_function

from cpython.object cimport PyObject_RichCompare
from libcpp.vector cimport vector
Expand Down
1 change: 0 additions & 1 deletion src/sage/combinat/partitions.pyx
Expand Up @@ -23,7 +23,6 @@ AUTHOR:
# (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import print_function, absolute_import

import sys

Expand Down
2 changes: 0 additions & 2 deletions src/sage/combinat/permutation_cython.pyx
Expand Up @@ -33,8 +33,6 @@ speed, we provide a class that wraps our struct.
# http://www.gnu.org/licenses/
#*****************************************************************************

from __future__ import print_function

cimport cython

from cpython.object cimport PyObject
Expand Down
2 changes: 0 additions & 2 deletions src/sage/combinat/root_system/reflection_group_element.pyx
Expand Up @@ -22,8 +22,6 @@ AUTHORS:
# http://www.gnu.org/licenses/
#*****************************************************************************

from __future__ import absolute_import, print_function

from sage.misc.cachefunc import cached_method
from sage.misc.lazy_attribute import lazy_attribute
from sage.misc.misc_c import prod
Expand Down
1 change: 0 additions & 1 deletion src/sage/combinat/words/word_char.pyx
Expand Up @@ -10,7 +10,6 @@ Fast word datatype using an array of unsigned char
# (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import print_function, absolute_import

from cysignals.memory cimport check_allocarray, sig_free
from cysignals.signals cimport sig_on, sig_off
Expand Down
1 change: 0 additions & 1 deletion src/sage/combinat/words/word_datatypes.pyx
Expand Up @@ -11,7 +11,6 @@ Datatypes for finite words
# (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import print_function, absolute_import

from cpython.object cimport Py_EQ, Py_NE
from itertools import islice
Expand Down
3 changes: 0 additions & 3 deletions src/sage/cpython/atexit.pyx
Expand Up @@ -12,9 +12,6 @@
# http://www.gnu.org/licenses/
#*****************************************************************************

from __future__ import absolute_import


import atexit


Expand Down
8 changes: 3 additions & 5 deletions src/sage/cpython/dict_del_by_value.pyx
Expand Up @@ -16,25 +16,23 @@ AUTHORS:
- Nils Bruin (2017-05)
"""

#*****************************************************************************
# ****************************************************************************
# Copyright (C) 2017 Nils Bruin <nbruin@sfu.ca>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
# https://www.gnu.org/licenses/
#*****************************************************************************

from __future__ import print_function, absolute_import
# ****************************************************************************

import weakref
from weakref import KeyedRef

from cpython.list cimport PyList_New
from cpython cimport Py_XINCREF, Py_XDECREF

IF PY_VERSION_HEX<=0x02ffffff:
IF PY_VERSION_HEX <= 0x02ffffff:
cdef extern from "Python.h":
ctypedef struct PyDictEntry:
Py_ssize_t me_hash
Expand Down
2 changes: 0 additions & 2 deletions src/sage/cpython/string.pyx
Expand Up @@ -23,8 +23,6 @@ Check that this can be used outside of Sage (see :trac:`25549`)::
# http://www.gnu.org/licenses/
#*****************************************************************************

from __future__ import absolute_import

import sys


Expand Down
1 change: 0 additions & 1 deletion src/sage/crypto/boolean_function.pyx
Expand Up @@ -28,7 +28,6 @@ AUTHOR:
- Yann Laigle-Chapuy (2009-08-28): first implementation
"""
from __future__ import absolute_import

from cysignals.signals cimport sig_check
from libc.string cimport memcpy
Expand Down
1 change: 0 additions & 1 deletion src/sage/data_structures/bitset.pyx
Expand Up @@ -30,7 +30,6 @@ linear in ``capacity``.
#
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import print_function

include "bitset.pxi"
from cpython.object cimport Py_LT, Py_LE, Py_EQ, Py_NE, Py_GT, Py_GE
Expand Down
1 change: 0 additions & 1 deletion src/sage/data_structures/bounded_integer_sequences.pyx
Expand Up @@ -106,7 +106,6 @@ AUTHORS:
# the License, or (at your option) any later version.
# https://www.gnu.org/licenses/
# ****************************************************************************
from __future__ import print_function, absolute_import

from cysignals.signals cimport sig_check, sig_on, sig_off
include 'sage/data_structures/bitset.pxi'
Expand Down
1 change: 0 additions & 1 deletion src/sage/dynamics/complex_dynamics/mandel_julia_helper.pyx
Expand Up @@ -20,7 +20,6 @@ AUTHORS:
# http://www.gnu.org/licenses/
#*****************************************************************************

from __future__ import absolute_import, division
from sage.plot.colors import Color
from sage.repl.image import Image
from copy import copy
Expand Down
1 change: 0 additions & 1 deletion src/sage/ext/fast_callable.pyx
Expand Up @@ -299,7 +299,6 @@ AUTHOR:
#
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import absolute_import

import operator
from copy import copy
Expand Down
1 change: 0 additions & 1 deletion src/sage/ext/fast_eval.pyx
Expand Up @@ -86,7 +86,6 @@ AUTHORS:
# (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import absolute_import

from cysignals.memory cimport sig_malloc, sig_free

Expand Down
1 change: 0 additions & 1 deletion src/sage/finance/fractal.pyx
Expand Up @@ -20,7 +20,6 @@ AUTHOR:
- William Stein (2008)
"""
from __future__ import absolute_import

from sage.rings.all import RDF, CDF, Integer
from sage.modules.all import vector
Expand Down
1 change: 0 additions & 1 deletion src/sage/finance/markov_multifractal_cython.pyx
Expand Up @@ -3,7 +3,6 @@ Markov Switching Multifractal model
Cython code
"""
from __future__ import absolute_import

from sage.misc.randstate cimport randstate, current_randstate

Expand Down
2 changes: 0 additions & 2 deletions src/sage/finance/time_series.pyx
Expand Up @@ -46,8 +46,6 @@ AUTHOR:
# http://www.gnu.org/licenses/
#*****************************************************************************

from __future__ import absolute_import

cimport cython
from cpython.bytes cimport PyBytes_FromStringAndSize, PyBytes_AsString
from libc.math cimport exp, floor, log, pow, sqrt
Expand Down
1 change: 0 additions & 1 deletion src/sage/functions/prime_pi.pyx
Expand Up @@ -27,7 +27,6 @@ EXAMPLES::
# the License, or (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import absolute_import

from cypari2.paridecl cimport *
from cysignals.signals cimport *
Expand Down
2 changes: 0 additions & 2 deletions src/sage/games/sudoku_backtrack.pyx
Expand Up @@ -3,8 +3,6 @@ This module contains Cython code for a backtracking algorithm to solve Sudoku pu
Once Cython implements closures and the ``yield`` keyword is possible, this can be moved into the ``sage.games.sudoku`` module, as part of the ``Sudoku.backtrack`` method, and this module can be banned.
"""
from __future__ import print_function


def backtrack_all(n, puzzle):
r"""
Expand Down
1 change: 0 additions & 1 deletion src/sage/geometry/integral_points.pyx
Expand Up @@ -12,7 +12,6 @@ Cython helper methods to compute integral points in polyhedra.
# (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import print_function, absolute_import

from cysignals.signals cimport sig_check
import copy
Expand Down
1 change: 0 additions & 1 deletion src/sage/geometry/point_collection.pyx
Expand Up @@ -75,7 +75,6 @@ need to spend time and memory four times.
# the License, or (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
from __future__ import print_function

from sage.structure.sage_object cimport SageObject
from sage.structure.richcmp cimport richcmp_not_equal, richcmp
Expand Down

0 comments on commit 0a34ee9

Please sign in to comment.