Skip to content

Commit

Permalink
enhancement: changes related to python 3.12 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Faraz Maqsood authored and Muhammad Faraz Maqsood committed Mar 14, 2024
1 parent 82b7d38 commit 436247c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion course_discovery/apps/catalogs/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
from collections import Iterable # lint-amnesty, pylint: disable=deprecated-class, no-name-in-module
try:
# Python 3
from collections.abc import Iterable
except ImportError:

Check warning on line 4 in course_discovery/apps/catalogs/models.py

View check run for this annotation

Codecov / codecov/patch

course_discovery/apps/catalogs/models.py#L4

Added line #L4 was not covered by tests
# Python 2.7
from collections import Iterable

Check warning on line 6 in course_discovery/apps/catalogs/models.py

View check run for this annotation

Codecov / codecov/patch

course_discovery/apps/catalogs/models.py#L6

Added line #L6 was not covered by tests

from django.db import models
from django.utils.translation import gettext_lazy as _
Expand Down

0 comments on commit 436247c

Please sign in to comment.