summaryrefslogtreecommitdiff
path: root/django/apps/config.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-01-25 13:59:25 -0500
committerGitHub <noreply@github.com>2017-01-25 13:59:25 -0500
commit1c466994d9729a8902d34e277a3a685bef2a08e1 (patch)
tree3a0c5ea4fc352aead66378f1fc2217feb6e1e2c7 /django/apps/config.py
parent11856ea44e4dd1ff2358c559c0d04ac848832c23 (diff)
Refs #23919 -- Removed misc Python 2/3 references.
Diffstat (limited to 'django/apps/config.py')
-rw-r--r--django/apps/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/apps/config.py b/django/apps/config.py
index 1bc684b3ca..4845557051 100644
--- a/django/apps/config.py
+++ b/django/apps/config.py
@@ -57,8 +57,8 @@ 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 3's _NamespacePath does not
- # support indexing.
+ # Convert paths to list because Python's _NamespacePath doesn't support
+ # indexing.
paths = list(getattr(module, '__path__', []))
if len(paths) != 1:
filename = getattr(module, '__file__', None)