File tree Expand file tree Collapse file tree 4 files changed +7
-13
lines changed Expand file tree Collapse file tree 4 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ from memory_allocator cimport MemoryAllocator
37
37
from memory_allocator.memory_allocator cimport align
38
38
from cython.operator import preincrement as preinc
39
39
40
- from sage.cpython.string cimport char_to_str, str_to_bytes, bytes_to_str
40
+ from sage.cpython.string cimport str_to_bytes, bytes_to_str
41
41
from sage.libs.gmp.mpn cimport *
42
42
from sage.libs.gmp.types cimport *
43
43
from sage.data_structures.sparse_bitset cimport sparse_bitset_t
Original file line number Diff line number Diff line change 27
27
28
28
import os
29
29
import re
30
- import sys
31
- import time
32
30
33
31
from .expect import Expect
34
32
from .interface import (Interface , InterfaceElement , InterfaceFunctionElement )
35
- from sage .cpython .string import bytes_to_str , str_to_bytes
36
33
from sage .misc .verbose import get_verbose
37
34
from sage .misc .cachefunc import cached_method
38
35
from sage .interfaces .tab_completion import ExtraTabCompletion
Original file line number Diff line number Diff line change @@ -25,19 +25,18 @@ AUTHORS:
25
25
26
26
"""
27
27
28
- # ** ***************************************************************************
28
+ # ***************************************************************************
29
29
# Copyright (C) 2015 Simon King <[email protected] >
30
30
#
31
31
# This program is free software: you can redistribute it and/or modify
32
32
# it under the terms of the GNU General Public License as published by
33
33
# the Free Software Foundation, either version 2 of the License, or
34
34
# (at your option) any later version.
35
- # http ://www.gnu.org/licenses/
36
- # ** ***************************************************************************
35
+ # https ://www.gnu.org/licenses/
36
+ # ***************************************************************************
37
37
38
38
from cysignals.memory cimport check_realloc, check_malloc, sig_free
39
39
from cpython.bytes cimport PyBytes_AsString, PyBytes_FromStringAndSize
40
- from sage.cpython.string cimport str_to_bytes
41
40
from cysignals.signals cimport sig_on, sig_off, sig_check
42
41
cimport cython
43
42
Original file line number Diff line number Diff line change @@ -10,24 +10,22 @@ AUTHOR:
10
10
11
11
- Robert Bradshaw 2008-04 (initial version)
12
12
"""
13
-
14
- # *****************************************************************************
13
+ # ***************************************************************************
15
14
# Copyright (C) 2008 Robert Bradshaw <[email protected] >
16
15
#
17
16
# This program is free software: you can redistribute it and/or modify
18
17
# it under the terms of the GNU General Public License as published by
19
18
# the Free Software Foundation, either version 2 of the License, or
20
19
# (at your option) any later version.
21
- # http ://www.gnu.org/licenses/
22
- # ** ***************************************************************************
20
+ # https ://www.gnu.org/licenses/
21
+ # ***************************************************************************
23
22
24
23
from libc.string cimport strchr
25
24
from cpython.bytes cimport PyBytes_FromStringAndSize
26
25
from cpython.list cimport PyList_Append
27
26
28
27
import math
29
28
30
- from sage.cpython.string cimport str_to_bytes, bytes_to_str
31
29
32
30
def foo (*args , **kwds ):
33
31
"""
You can’t perform that action at this time.
0 commit comments