Skip to content

Commit f51e743

Browse files
committed
#495 pass list i.s.o. set to random.sample() func for Python3.12 compat
1 parent 5fa3b48 commit f51e743

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

GeoHealthCheck/plugins/probe/wmsdrilldown.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def perform_request(self):
6363
result.start()
6464
try:
6565
# Pick a random layer
66-
layer_name = random.sample(wms.contents.keys(), 1)[0]
66+
layer_name = random.sample(list(wms.contents.keys()), 1)[0]
6767
layer = wms[layer_name]
6868

6969
# TODO Only use EPSG:4326, later random CRS

docs/install.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ for installation and management. ``Cron`` was used for scheduling the actual
3232
healthchecks before v0.5.0.
3333

3434
Starting from version v0.8.0.0 GeoHealthCheck requires **python 3**. Previous
35-
versions require **python 2**.
35+
versions require **python 2**. GeoHealthCheck is at least compatible with Python versions
36+
up to and including `3.12.3`. Higher Python versions may work but are untested.
3637

3738
Install
3839
-------

0 commit comments

Comments
 (0)