Skip to content

Commit

Permalink
sagemathgh-39087: remove final empty lines in pxd/pxi files
Browse files Browse the repository at this point in the history
remove the final empty lines

`W391 blank line at end of file`

in some pxd and pxi files

### 📝 Checklist

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.

URL: sagemath#39087
Reported by: Frédéric Chapoton
Reviewer(s): Martin Rubey
  • Loading branch information
Release Manager committed Dec 8, 2024
2 parents 3624943 + 99527be commit d129e08
Show file tree
Hide file tree
Showing 34 changed files with 3 additions and 37 deletions.
4 changes: 2 additions & 2 deletions build/pkgs/configure/checksums.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
tarball=configure-VERSION.tar.gz
sha1=62eedaff4c03b55fdd6f8e1242026226adbf3a16
sha256=54036d6435218ce1daa7d5d512e1bfd74d3713ed5745d5c49ee1f5e6122a25de
sha1=2ddf97fb44945c5e863332a2e9494438fff85b4d
sha256=6c6f918459bb21c82fb015722ed46bd2f43a4fb3ab60f38666e3332a7eebf33b
2 changes: 1 addition & 1 deletion build/pkgs/configure/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f6ad0ecf1f4a269f5954d5487336b13f70624594
d305e8b32fe1977ea75b3a58198aa0d3dd60e2f9
1 change: 0 additions & 1 deletion src/sage/coding/binary_code.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,3 @@ cdef class BinaryCodeClassifier:

cdef void record_automorphism(self, int *, int) noexcept
cdef void aut_gp_and_can_label(self, BinaryCode, int) noexcept

1 change: 0 additions & 1 deletion src/sage/combinat/permutation_cython.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ cpdef list left_action_same_n(list l, list r)
cpdef list right_action_same_n(list l, list r)
cpdef list left_action_product(list l, list r)
cpdef list right_action_product(list l, list r)

Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ cdef class RiggedPartition(SageObject):

cdef class RiggedPartitionTypeB(RiggedPartition):
pass

1 change: 0 additions & 1 deletion src/sage/data_structures/bitset.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,3 @@ cdef class Bitset(FrozenBitset):
cpdef discard(self, unsigned long n)
cpdef pop(self)
cpdef clear(self)

1 change: 0 additions & 1 deletion src/sage/groups/group.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ cdef class FiniteGroup(Group):

cdef class AlgebraicGroup(Group):
pass

1 change: 0 additions & 1 deletion src/sage/groups/old.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ cdef class FiniteGroup(Group):

cdef class AlgebraicGroup(Group):
pass

Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,3 @@ cdef iterator *setup_canonical_generator(int degree,
iterator *cangen_prealloc) except NULL

cdef iterator *start_canonical_generator(StabilizerChain *, void *, int, iterator *) except NULL

1 change: 0 additions & 1 deletion src/sage/groups/perm_gps/partn_ref/refinement_matrices.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@ cdef class MatrixStruct:
cdef int refine_matrix(PartitionStack *, void *, int *, int) noexcept
cdef int compare_matrices(int *, int *, void *, void *, int) noexcept
cdef bint all_matrix_children_are_equivalent(PartitionStack *, void *) noexcept

1 change: 0 additions & 1 deletion src/sage/libs/gmp/mpq.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,3 @@ cdef extern from "gmp.h":
# Input and Output Functions
# size_t mpq_out_str (file *stream, int base, mpq_t op)
# size_t mpq_inp_str (mpq_t rop, file *stream, int base)

1 change: 0 additions & 1 deletion src/sage/libs/m4ri.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -195,4 +195,3 @@ cdef extern from "m4ri/m4ri.h":
##################################

cdef void mzd_clear_bits(mzd_t *m, int x, int y, int n)

1 change: 0 additions & 1 deletion src/sage/libs/ntl/ZZ_pX.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,3 @@ cdef extern from "ntlwrap_impl.h":
void ZZ_pX_right_pshift(ZZ_pX_c x, ZZ_pX_c a, ZZ_c pn, ZZ_pContext_c c)
void ZZ_pX_InvMod_newton_unram(ZZ_pX_c x, ZZ_pX_c a, ZZ_pX_Modulus_c F, ZZ_pContext_c cpn, ZZ_pContext_c cp)
void ZZ_pX_InvMod_newton_ram(ZZ_pX_c x, ZZ_pX_c a, ZZ_pX_Modulus_c F, ZZ_pContext_c cpn)

1 change: 0 additions & 1 deletion src/sage/libs/ntl/ntl_GF2E.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ cdef class ntl_GF2E():
cdef GF2E_c x
cdef ntl_GF2EContext_class c
cdef ntl_GF2E _new(self)

1 change: 0 additions & 1 deletion src/sage/matrix/matrix_cyclo_dense.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ cdef class Matrix_cyclo_dense(Matrix_dense):

cdef _randomize_rational_column_unsafe(Matrix_cyclo_dense self,
Py_ssize_t col, mpz_t nump1, mpz_t denp1, distribution=?)

1 change: 0 additions & 1 deletion src/sage/matrix/matrix_modn_dense_template.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -3241,4 +3241,3 @@ cdef class Matrix_modn_dense_template(Matrix_dense):
[0 1]
"""
return self._entries[j+i*self._ncols] == 0

1 change: 0 additions & 1 deletion src/sage/modules/free_module_element.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ cdef class FreeModuleElement_generic_sparse(FreeModuleElement):

# cdef'd methods
cdef _new_c(self, object v)

1 change: 0 additions & 1 deletion src/sage/rings/finite_rings/element_base.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ cdef class FinitePolyExtElement(FiniteRingElement):

cdef class Cache_base(SageObject):
cpdef FinitePolyExtElement fetch_int(self, number)

1 change: 0 additions & 1 deletion src/sage/rings/finite_rings/stdint.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ from libc.stdint cimport int_fast32_t, int_fast64_t
cdef extern from "integer_mod_limits.h":
int_fast32_t INTEGER_MOD_INT32_LIMIT
int_fast64_t INTEGER_MOD_INT64_LIMIT

1 change: 0 additions & 1 deletion src/sage/rings/laurent_series_ring_element.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ cdef class LaurentSeries(AlgebraElement):
cdef _normalize(self)
cpdef _add_(self, other)
cpdef _mul_(self, other)

Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,3 @@ cdef class OrderElement_quadratic(NumberFieldElement_quadratic):
pass

cpdef bint is_sqrt_disc(Rational ad, Rational bd) noexcept

1 change: 0 additions & 1 deletion src/sage/rings/number_field/totallyreal_data.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ cdef class tr_data:
cdef int *df

cdef void incr(self, int *f_out, int verbose, int haltk, int phc) noexcept

1 change: 0 additions & 1 deletion src/sage/rings/polynomial/polynomial_element.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,3 @@ cpdef Polynomial generic_power_trunc(Polynomial p, Integer n, long prec)
cpdef list _dict_to_list(dict x, zero)

cpdef bint polynomial_is_variable(x) noexcept

1 change: 0 additions & 1 deletion src/sage/rings/polynomial/polynomial_gf2x.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ include "polynomial_template_header.pxi"

cdef class Polynomial_GF2X(Polynomial_template):
pass

1 change: 0 additions & 1 deletion src/sage/rings/polynomial/polynomial_rational_flint.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ cdef class Polynomial_rational_flint(Polynomial):
cpdef _mod_(self, right)
cpdef _unsafe_mutate(self, unsigned long n, value)
cpdef Polynomial truncate(self, long n)

1 change: 0 additions & 1 deletion src/sage/rings/polynomial/skew_polynomial_finite_order.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ cdef class SkewPolynomial_finite_order_dense (SkewPolynomial_generic_dense):

cdef _matphir_c(self)
cdef _matmul_c(self)

1 change: 0 additions & 1 deletion src/sage/rings/power_series_poly.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ cdef class PowerSeries_poly(PowerSeries):

cdef class BaseRingFloorDivAction(Action):
pass

1 change: 0 additions & 1 deletion src/sage/rings/real_lazy.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@ cdef class LazyUnop(LazyFieldElement):

cdef class LazyNamedUnop(LazyUnop):
cdef readonly _extra_args

2 changes: 0 additions & 2 deletions src/sage/rings/ring_extension_conversion.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,3 @@ cpdef from_backend_morphism(f, RingExtension_generic E)

cpdef to_backend(arg)
cpdef from_backend(arg, E)


2 changes: 0 additions & 2 deletions src/sage/rings/ring_extension_element.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,3 @@ cdef class RingExtensionWithBasisElement(RingExtensionElement):
cdef _trace(self, Parent base)
cdef _norm(self, Parent base)
cpdef minpoly(self, base=*, var=*)


1 change: 0 additions & 1 deletion src/sage/rings/tate_algebra_element.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,3 @@ cdef class TateAlgebraElement(CommutativeAlgebraElement):
cdef _quo_rem_c(self, list divisors, bint quo, bint rem, bint integral)
cdef _quo_rem_check(self, divisors, bint quo, bint rem)
cdef TateAlgebraElement _Spoly_c(self, TateAlgebraElement other)

1 change: 0 additions & 1 deletion src/sage/stats/hmm/hmm.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ cdef class HiddenMarkovModel:
cdef TimeSeries A, pi

cdef TimeSeries _baum_welch_gamma(self, TimeSeries alpha, TimeSeries beta)

1 change: 0 additions & 1 deletion src/sage/stats/hmm/util.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ cdef class HMM_Util:
cpdef normalize_probability_TimeSeries(self, TimeSeries T, Py_ssize_t i, Py_ssize_t j)
cpdef TimeSeries initial_probs_to_TimeSeries(self, pi, bint normalize)
cpdef TimeSeries state_matrix_to_TimeSeries(self, A, int N, bint normalize)

1 change: 0 additions & 1 deletion src/sage/structure/element_wrapper.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ cdef class ElementWrapper(Element):

cdef class ElementWrapperCheckWrappedClass(ElementWrapper):
pass

0 comments on commit d129e08

Please sign in to comment.