From 05d10e28beca2c002465944b49db266539d87f66 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Sun, 10 Nov 2024 14:08:26 -0500 Subject: [PATCH] MNT: only int instead of long in cython code cython/cython#5830 / d7e95912b6ed7d20e190fbf1aecb9f2a997d479 in cython removed long as a valid type in favor of int at language level 3. --- src/silx/io/specfile.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/silx/io/specfile.pyx b/src/silx/io/specfile.pyx index cbbe7fa61c..67e770655b 100644 --- a/src/silx/io/specfile.pyx +++ b/src/silx/io/specfile.pyx @@ -279,7 +279,7 @@ class MCA(object): if not len(self): raise IndexError("No MCA spectrum found in this scan") - if isinstance(key, (int, long)): + if isinstance(key, int): mca_index = key # allow negative index, like lists if mca_index < 0: