Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
removal of some unused imports about string conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Dec 13, 2022
1 parent bb7ee85 commit fc44813
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/sage/data_structures/bitset_base.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ from memory_allocator cimport MemoryAllocator
from memory_allocator.memory_allocator cimport align
from cython.operator import preincrement as preinc

from sage.cpython.string cimport char_to_str, str_to_bytes, bytes_to_str
from sage.cpython.string cimport str_to_bytes, bytes_to_str
from sage.libs.gmp.mpn cimport *
from sage.libs.gmp.types cimport *
from sage.data_structures.sparse_bitset cimport sparse_bitset_t
Expand Down
3 changes: 0 additions & 3 deletions src/sage/interfaces/polymake.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,9 @@

import os
import re
import sys
import time

from .expect import Expect
from .interface import (Interface, InterfaceElement, InterfaceFunctionElement)
from sage.cpython.string import bytes_to_str, str_to_bytes
from sage.misc.verbose import get_verbose
from sage.misc.cachefunc import cached_method
from sage.interfaces.tab_completion import ExtraTabCompletion
Expand Down
7 changes: 3 additions & 4 deletions src/sage/matrix/matrix_gfpn_dense.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,18 @@ AUTHORS:
"""

#*****************************************************************************
# ***************************************************************************
# Copyright (C) 2015 Simon King <simon.king@uni-jena.de>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
# https://www.gnu.org/licenses/
# ***************************************************************************

from cysignals.memory cimport check_realloc, check_malloc, sig_free
from cpython.bytes cimport PyBytes_AsString, PyBytes_FromStringAndSize
from sage.cpython.string cimport str_to_bytes
from cysignals.signals cimport sig_on, sig_off, sig_check
cimport cython

Expand Down
8 changes: 3 additions & 5 deletions src/sage/misc/parser.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,22 @@ AUTHOR:
- Robert Bradshaw 2008-04 (initial version)
"""

#*****************************************************************************
# ***************************************************************************
# Copyright (C) 2008 Robert Bradshaw <robertwb@math.washington.edu>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
# https://www.gnu.org/licenses/
# ***************************************************************************

from libc.string cimport strchr
from cpython.bytes cimport PyBytes_FromStringAndSize
from cpython.list cimport PyList_Append

import math

from sage.cpython.string cimport str_to_bytes, bytes_to_str

def foo(*args, **kwds):
"""
Expand Down

0 comments on commit fc44813

Please sign in to comment.