diff options
| author | William Schwartz <wkschwartz@gmail.com> | 2021-03-26 10:14:07 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-03-26 10:17:10 +0100 |
| commit | cecdec91cf08fa8ad70a22d2a03bec3e86692350 (patch) | |
| tree | b7152979849d25a663c322293190ec82d99509ac /django/apps/config.py | |
| parent | 509d266c6aae5e4d5738fe2a2cba0bde581aac2b (diff) | |
Refs #32355 -- Corrected comments about Python's _NamespacePath.
_NamespacePath supports indexing in Python 3.8+.
Diffstat (limited to 'django/apps/config.py')
| -rw-r--r-- | django/apps/config.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/apps/config.py b/django/apps/config.py index bced53d506..7dfb4b4e15 100644 --- a/django/apps/config.py +++ b/django/apps/config.py @@ -73,8 +73,7 @@ class AppConfig: """Attempt to determine app's filesystem path from its module.""" # See #21874 for extended discussion of the behavior of this method in # various cases. - # Convert paths to list because Python's _NamespacePath doesn't support - # indexing. + # Convert to list because __path__ may not support indexing. paths = list(getattr(module, '__path__', [])) if len(paths) != 1: filename = getattr(module, '__file__', None) |
