#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+------------------------------------
Reporter: jessamynsmith | Owner: nobody
Type: Bug | Status: new
Component: Core (Other) | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Comment (by carljm):
I don't know how or why a Python 3 namespace package would end up with a
`__path__` containing the same directory multiple times (seems like a bug
in Python, if someone is able to track down the cause), but regardless
Django may as well be robust against it. We should just de-dupe
`__path__`, probably by converting to a set, in
`AppConfig._path_to_module`.
--
Ticket URL: <https://code.djangoproject.com/ticket/25246#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/071.275a628eeb2bfc5a5795216a93785d48%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.