summaryrefslogtreecommitdiff
path: root/dev-python/wxpython/files/wxpython-4.2.1-integer-division-for-randint.patch
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-06-05 09:01:13 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-06-05 09:01:13 +0000
commitc2c9aff8c0524b47b95699ded988b89aa1309406 (patch)
tree8b0ecdf118995735a0e5014c7991d97c94428a46 /dev-python/wxpython/files/wxpython-4.2.1-integer-division-for-randint.patch
parent9f814b4c24f5a9bd139baac62df5b34ad39b9dc1 (diff)
downloadbaldeagleos-repo-c2c9aff8c0524b47b95699ded988b89aa1309406.tar.gz
baldeagleos-repo-c2c9aff8c0524b47b95699ded988b89aa1309406.tar.xz
baldeagleos-repo-c2c9aff8c0524b47b95699ded988b89aa1309406.zip
Adding metadata
Diffstat (limited to 'dev-python/wxpython/files/wxpython-4.2.1-integer-division-for-randint.patch')
-rw-r--r--dev-python/wxpython/files/wxpython-4.2.1-integer-division-for-randint.patch26
1 files changed, 0 insertions, 26 deletions
diff --git a/dev-python/wxpython/files/wxpython-4.2.1-integer-division-for-randint.patch b/dev-python/wxpython/files/wxpython-4.2.1-integer-division-for-randint.patch
deleted file mode 100644
index b98624d7df8f..000000000000
--- a/dev-python/wxpython/files/wxpython-4.2.1-integer-division-for-randint.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-From https://github.com/wxWidgets/Phoenix/pull/2508
-From 3b042c863f4092f802a877a972fd6eb284451a78 Mon Sep 17 00:00:00 2001
-From: Ben Greiner <code@bnavigator.de>
-Date: Sat, 6 Jan 2024 21:58:29 +0100
-Subject: [PATCH] integer division for randint
-
-Python 3.12 does not accept floats for random.randint() anymore
----
- unittests/test_dcDrawLists.py | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/unittests/test_dcDrawLists.py b/unittests/test_dcDrawLists.py
-index 9e35e5eaf..6696a79a0 100644
---- a/unittests/test_dcDrawLists.py
-+++ b/unittests/test_dcDrawLists.py
-@@ -63,8 +63,8 @@ def makeRandomRectangles():
- rects = []
-
- for i in range(num):
-- W = random.randint(10, w/2)
-- H = random.randint(10, h/2)
-+ W = random.randint(10, w//2)
-+ H = random.randint(10, h//2)
- x = random.randint(0, w - W)
- y = random.randint(0, h - H)
- rects.append( (x, y, W, H) )