Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit ae783de

Browse files
author
Release Manager
committed
Trac #26403: Compile Sage with Cython language_level=3str
Cython 0.29 introduces a new `language_level=3str`, which is like `language_level=3` except that strings are still `str` instead of `unicode`. It would be good to use this language_level in Sage to force Python 3 syntax in all Cython files. URL: https://trac.sagemath.org/26403 Reported by: jdemeyer Ticket author(s): Jeroen Demeyer Reviewer(s): Frédéric Chapoton
2 parents 064de7e + 58a30a8 commit ae783de

File tree

331 files changed

+13
-440
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

331 files changed

+13
-440
lines changed

src/sage/algebras/letterplace/free_algebra_element_letterplace.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ AUTHOR:
1515
- Simon King (2011-03-23): Trac ticket :trac:`7797`
1616
1717
"""
18-
from __future__ import print_function
1918

2019
from sage.libs.singular.function import lib, singular_function
2120
from sage.misc.misc import repr_lincomb

src/sage/algebras/quatalg/quaternion_algebra_cython.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ AUTHORS:
2020
# (at your option) any later version.
2121
# http://www.gnu.org/licenses/
2222
#*****************************************************************************
23-
from __future__ import absolute_import
2423

2524
from sage.rings.integer_ring import ZZ
2625
from sage.rings.rational_field import QQ

src/sage/arith/multi_modular.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Utility classes for multi-modular algorithms
1111
# (at your option) any later version.
1212
# http://www.gnu.org/licenses/
1313
#*****************************************************************************
14-
from __future__ import absolute_import
1514

1615
from cysignals.memory cimport check_allocarray, check_reallocarray, sig_free
1716

src/sage/arith/srange.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# cython: language_level=2
12
"""
23
Ranges and the ``[1,2,..,n]`` notation
34

src/sage/calculus/integration.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ AUTHORS:
2525
# the License, or (at your option) any later version.
2626
# http://www.gnu.org/licenses/
2727
#*****************************************************************************
28-
from __future__ import print_function, absolute_import
2928

3029
from cysignals.signals cimport sig_on, sig_off
3130
from sage.rings.real_double import RDF

src/sage/calculus/interpolators.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Development supported by NSF award No. 0702939.
2222
#
2323
# http://www.gnu.org/licenses/
2424
#*****************************************************************************
25-
from __future__ import absolute_import
2625

2726
import numpy as np
2827
cimport numpy as np

src/sage/calculus/ode.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ AUTHORS:
1818
# (at your option) any later version.
1919
# http://www.gnu.org/licenses/
2020
#*****************************************************************************
21-
from __future__ import absolute_import
2221

2322
from cysignals.memory cimport sig_malloc, sig_free
2423
from cysignals.signals cimport sig_on, sig_off

src/sage/calculus/riemann.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ Development supported by NSF award No. 0702939.
2424
#
2525
# http://www.gnu.org/licenses/
2626
#*****************************************************************************
27-
from __future__ import print_function, absolute_import
2827

2928
from cysignals.signals cimport sig_on, sig_off
3029

src/sage/calculus/transforms/dwt.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ AUTHOR:
2020
# (at your option) any later version.
2121
# http://www.gnu.org/licenses/
2222
#*****************************************************************************
23-
from __future__ import absolute_import
2423

2524
import sage.plot.all
2625

src/sage/calculus/transforms/fft.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ AUTHORS:
1919
# (at your option) any later version.
2020
# http://www.gnu.org/licenses/
2121
#*****************************************************************************
22-
from __future__ import absolute_import
2322

2423
from cysignals.memory cimport sig_malloc, sig_free
2524

0 commit comments

Comments
 (0)