File: 0007-python3.10-fix.patch

package info (click to toggle)
silx 2.2.1%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 31,696 kB
  • sloc: python: 119,829; ansic: 5,062; lisp: 4,454; cpp: 883; sh: 286; makefile: 90; xml: 46
file content (21 lines) | stat: -rw-r--r-- 654 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Nilesh Patra <nilesh@debian.org>
Date: Sun, 13 Mar 2022 03:37:32 +0100
Subject: Fix int compare with python3.10

---
 src/silx/app/view/About.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/silx/app/view/About.py b/src/silx/app/view/About.py
index 76e0cf2..350337d 100644
--- a/src/silx/app/view/About.py
+++ b/src/silx/app/view/About.py
@@ -250,7 +250,7 @@ class About(qt.QDialog):
                 width = hardLimit
 
         height = layoutMinimumSize.height()
-        self.setFixedSize(width, height)
+        self.setFixedSize(int(width), int(height))
 
     @staticmethod
     def about(parent, applicationName):