Skip to content

Commit 2714441

Browse files
author
Matthias Koeppe
committed
Use language_level 3str
1 parent 1222d1b commit 2714441

File tree

7 files changed

+2
-11
lines changed

7 files changed

+2
-11
lines changed

cypari2/closure.pyx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ Examples:
3131
# https://www.gnu.org/licenses/
3232
# ****************************************************************************
3333

34-
from __future__ import absolute_import, division, print_function
35-
3634
from cysignals.signals cimport sig_on, sig_off, sig_block, sig_unblock, sig_error
3735

3836
from cpython.tuple cimport *

cypari2/convert.pyx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ some bit shuffling.
3939
# https://www.gnu.org/licenses/
4040
# ****************************************************************************
4141

42-
from __future__ import absolute_import, division, print_function
43-
4442
from cysignals.signals cimport sig_on, sig_off, sig_error
4543

4644
from cpython.version cimport PY_MAJOR_VERSION

cypari2/gen.pyx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ AUTHORS:
5555
# https://www.gnu.org/licenses/
5656
# ****************************************************************************
5757

58-
from __future__ import absolute_import, division, print_function
59-
6058
cimport cython
6159

6260
from cpython.object cimport (Py_EQ, Py_NE, Py_LE, Py_GE, Py_LT, PyTypeObject)

cypari2/handle_error.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ AUTHORS:
2121
# https://www.gnu.org/licenses/
2222
# ****************************************************************************
2323

24-
from __future__ import absolute_import, division, print_function
24+
from cpython cimport PyErr_Occurred
2525

2626
from cysignals.signals cimport sig_block, sig_unblock, sig_error
2727

cypari2/pari_instance.pyx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,6 @@ Test that changing the stack size using ``default`` works properly:
275275
# https://www.gnu.org/licenses/
276276
# ****************************************************************************
277277

278-
from __future__ import absolute_import, division
279-
280278
import sys
281279
from libc.stdio cimport *
282280
cimport cython

cypari2/stack.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Memory management for Gens on the PARI stack or the heap
1414
# http://www.gnu.org/licenses/
1515
# ****************************************************************************
1616

17-
from __future__ import absolute_import, division, print_function
1817
cimport cython
1918

2019
from cpython.ref cimport PyObject

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ def finalize_options(self):
3535
"autotestdict.cdef": True,
3636
"binding": True,
3737
"cdivision": True,
38-
"language_level": 2,
3938
"legacy_implicit_noexcept": True,
4039
"c_api_binop_methods": True,
40+
"language_level": "3str",
4141
}
4242

4343
_build_ext.finalize_options(self)

0 commit comments

Comments
 (0)