Skip to content

Commit dfceb98

Browse files
author
Matthias Koeppe
committed
Replace relative cimports
1 parent 882507f commit dfceb98

File tree

314 files changed

+545
-549
lines changed

Some content is hidden

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

314 files changed

+545
-549
lines changed

src/sage/algebras/quatalg/quaternion_algebra_cython.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ from sage.matrix.matrix_space import MatrixSpace
3535
from sage.matrix.matrix_integer_dense cimport Matrix_integer_dense
3636
from sage.matrix.matrix_rational_dense cimport Matrix_rational_dense
3737

38-
from .quaternion_algebra_element cimport QuaternionAlgebraElement_rational_field
38+
from sage.algebras.quatalg.quaternion_algebra_element cimport QuaternionAlgebraElement_rational_field
3939

4040
from sage.libs.gmp.mpz cimport mpz_t, mpz_lcm, mpz_init, mpz_set, mpz_clear, mpz_init_set, mpz_mul, mpz_fdiv_q, mpz_cmp_si
4141

src/sage/arith/power.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ square-and-multiply algorithm.
1818

1919
from cysignals.signals cimport sig_check
2020

21-
from .long cimport integer_check_long
21+
from sage.arith.long cimport integer_check_long
2222

2323

2424
cpdef generic_power(a, n):

src/sage/categories/action.pxd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# sage_setup: distribution = sagemath-objects
22
from sage.structure.element cimport Element
3-
from .morphism cimport Morphism
4-
from .map cimport Map
5-
from .functor cimport Functor
3+
from sage.categories.morphism cimport Morphism
4+
from sage.categories.map cimport Map
5+
from sage.categories.functor cimport Functor
66

77
cdef class Action(Functor):
88
cdef readonly G

src/sage/categories/action.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ AUTHOR:
5757

5858
from cpython.tuple cimport PyTuple_GET_ITEM
5959

60-
from .functor cimport Functor
61-
from .morphism cimport Morphism
62-
from .map cimport Map
60+
from sage.categories.functor cimport Functor
61+
from sage.categories.morphism cimport Morphism
62+
from sage.categories.map cimport Map
6363
from sage.structure.element cimport parent
6464
from sage.structure.parent cimport Parent
6565

src/sage/categories/morphism.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# sage_setup: distribution = sagemath-objects
22
from sage.structure.element cimport Element
3-
from .map cimport Map
3+
from sage.categories.map cimport Map
44

55

66
cdef class Morphism(Map):

src/sage/combinat/designs/orthogonal_arrays_find_recursive.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ cpdef find_brouwer_van_rees_with_one_truncated_column(int k,int n):
949949

950950
return False
951951

952-
from .designs_pyx cimport _OA_cache, _OA_cache_size
952+
from sage.combinat.designs.designs_pyx cimport _OA_cache, _OA_cache_size
953953
cdef int is_available(int k,int n) except -1:
954954
r"""
955955
Return whether Sage can build an OA(k,n)

src/sage/cpython/debug.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ cdef extern from "Python.h":
2222
cdef extern from "sage/cpython/debugimpl.c":
2323
void _type_debug(PyTypeObject*)
2424

25-
from .getattr cimport AttributeErrorMessage
25+
from sage.cpython.getattr cimport AttributeErrorMessage
2626

2727

2828
# Determine subtype_traverse, subtype_clear, subtype_dealloc functions

src/sage/cpython/getattr.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Variants of getattr()
55

66
from cpython.object cimport PyObject, PyTypeObject, Py_TYPE, descrgetfunc
77

8-
from .string cimport bytes_to_str
8+
from sage.cpython.string cimport bytes_to_str
99

1010
cdef extern from "Python.h":
1111
r"""

src/sage/data_structures/bitset.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# http://www.gnu.org/licenses/
99
#*****************************************************************************
1010

11-
from .bitset_base cimport bitset_t
11+
from sage.data_structures.bitset_base cimport bitset_t
1212

1313
# Python layer over bitset_t
1414
cdef class FrozenBitset:

src/sage/data_structures/bitset.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ linear in ``capacity``.
3232
# http://www.gnu.org/licenses/
3333
#*****************************************************************************
3434

35-
from .bitset_base cimport *
35+
from sage.data_structures.bitset_base cimport *
3636
from cpython.object cimport Py_LT, Py_LE, Py_EQ, Py_NE, Py_GT, Py_GE
3737

3838

0 commit comments

Comments
 (0)