Skip to content

Commit d516616

Browse files
KOliver94codingjoe
andauthored
Clean up remaining code for dropped Django versions (#407)
* Remove leftover as Django 3.2 is the lowest supported version * Remove leftover as Django 4.2 is the lowest supported version * Run pyupgrade && django-upgrade Ref 4fbf74f Ref 597cfd6 --------- Co-authored-by: Johannes Maron <johannes@maron.family>
1 parent 79791c5 commit d516616

File tree

18 files changed

+12
-130
lines changed

18 files changed

+12
-130
lines changed

health_check/cache/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +0,0 @@
1-
import django
2-
3-
if django.VERSION < (3, 2):
4-
default_app_config = "health_check.cache.apps.HealthCheckConfig"
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +0,0 @@
1-
import django
2-
3-
if django.VERSION < (3, 2):
4-
default_app_config = "health_check.contrib.celery.apps.HealthCheckConfig"
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +0,0 @@
1-
import django
2-
3-
if django.VERSION < (3, 2):
4-
default_app_config = "health_check.contrib.celery_ping.apps.HealthCheckConfig"

health_check/contrib/celery_ping/backends.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def _check_active_queues(self, active_workers):
5151
if not defined_queues:
5252
return
5353

54-
defined_queues = set([queue.name for queue in defined_queues])
54+
defined_queues = {queue.name for queue in defined_queues}
5555
active_queues = set()
5656

5757
for queues in app.control.inspect(active_workers).active_queues().values():
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +0,0 @@
1-
import django
2-
3-
if django.VERSION < (3, 2):
4-
default_app_config = "health_check.contrib.db_heartbeat.apps.HealthCheckConfig"
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +0,0 @@
1-
import django
2-
3-
if django.VERSION < (3, 2):
4-
default_app_config = "health_check.contrib.migrations.apps.HealthCheckConfig"
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +0,0 @@
1-
import django
2-
3-
if django.VERSION < (3, 2):
4-
default_app_config = "health_check.contrib.psutil.apps.HealthCheckConfig"
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +0,0 @@
1-
import django
2-
3-
if django.VERSION < (3, 2):
4-
default_app_config = "health_check.contrib.rabbitmq.apps.HealthCheckConfig"
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +0,0 @@
1-
import django
2-
3-
if django.VERSION < (3, 2):
4-
default_app_config = "health_check.contrib.redis.apps.HealthCheckConfig"
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +0,0 @@
1-
import django
2-
3-
if django.VERSION < (3, 2):
4-
default_app_config = "health_check.contrib.s3boto3_storage.apps.HealthCheckConfig"

0 commit comments

Comments
 (0)