Duplicate deepcopy import in django/db/models/query.py
|Reported by:||carljm||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||master|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
In django/db/models/query.py, deepcopy is imported once from copy, and later from django.utils.copycompat. The duplicate was introduced by the multi-db merge (r11952), after the switch had been made to django.utils.copycompat only a few days earlier (r11901).
The copy.deepcopy import is higher in the file, so has no effect, but removing it could help avoid confusion in future.
Change History (4)
Changed 4 years ago by carljm
comment:1 Changed 4 years ago by Alex
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Ready for checkin