Skip to content

Commit 9ffabc7

Browse files
author
Release Manager
committed
Trac #34844: removal of some unused imports about string conversion
as this may help to reduce compilation warnings URL: https://trac.sagemath.org/34844 Reported by: chapoton Ticket author(s): Frédéric Chapoton Reviewer(s): Travis Scrimshaw
2 parents 4b50bc2 + fc44813 commit 9ffabc7

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

src/sage/data_structures/bitset_base.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ from memory_allocator cimport MemoryAllocator
3737
from memory_allocator.memory_allocator cimport align
3838
from cython.operator import preincrement as preinc
3939

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
4141
from sage.libs.gmp.mpn cimport *
4242
from sage.libs.gmp.types cimport *
4343
from sage.data_structures.sparse_bitset cimport sparse_bitset_t

src/sage/interfaces/polymake.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,9 @@
2727

2828
import os
2929
import re
30-
import sys
31-
import time
3230

3331
from .expect import Expect
3432
from .interface import (Interface, InterfaceElement, InterfaceFunctionElement)
35-
from sage.cpython.string import bytes_to_str, str_to_bytes
3633
from sage.misc.verbose import get_verbose
3734
from sage.misc.cachefunc import cached_method
3835
from sage.interfaces.tab_completion import ExtraTabCompletion

src/sage/matrix/matrix_gfpn_dense.pyx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,18 @@ AUTHORS:
2525
2626
"""
2727

28-
#*****************************************************************************
28+
# ***************************************************************************
2929
# Copyright (C) 2015 Simon King <[email protected]>
3030
#
3131
# This program is free software: you can redistribute it and/or modify
3232
# it under the terms of the GNU General Public License as published by
3333
# the Free Software Foundation, either version 2 of the License, or
3434
# (at your option) any later version.
35-
# http://www.gnu.org/licenses/
36-
#*****************************************************************************
35+
# https://www.gnu.org/licenses/
36+
# ***************************************************************************
3737

3838
from cysignals.memory cimport check_realloc, check_malloc, sig_free
3939
from cpython.bytes cimport PyBytes_AsString, PyBytes_FromStringAndSize
40-
from sage.cpython.string cimport str_to_bytes
4140
from cysignals.signals cimport sig_on, sig_off, sig_check
4241
cimport cython
4342

src/sage/misc/parser.pyx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,22 @@ AUTHOR:
1010
1111
- Robert Bradshaw 2008-04 (initial version)
1212
"""
13-
14-
#*****************************************************************************
13+
# ***************************************************************************
1514
# Copyright (C) 2008 Robert Bradshaw <[email protected]>
1615
#
1716
# This program is free software: you can redistribute it and/or modify
1817
# it under the terms of the GNU General Public License as published by
1918
# the Free Software Foundation, either version 2 of the License, or
2019
# (at your option) any later version.
21-
# http://www.gnu.org/licenses/
22-
#*****************************************************************************
20+
# https://www.gnu.org/licenses/
21+
# ***************************************************************************
2322

2423
from libc.string cimport strchr
2524
from cpython.bytes cimport PyBytes_FromStringAndSize
2625
from cpython.list cimport PyList_Append
2726

2827
import math
2928

30-
from sage.cpython.string cimport str_to_bytes, bytes_to_str
3129

3230
def foo(*args, **kwds):
3331
"""

0 commit comments

Comments
 (0)