#14356 closed (fixed)
Unused import in django.core.management.sql
Reported by: | Xia Kai(夏恺) | Owned by: | nobody |
---|---|---|---|
Component: | Core (Other) | Version: | dev |
Severity: | Keywords: | obsolete import | |
Cc: | xiaket@… | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Hi,
There are several unused imports in source:django/trunk/django/core/management/sql.py
from django.contrib.contenttypes import generic from django.dispatch import dispatcher from django.db.backends.util import truncate_name
I read all the codes in this file and confirmed that the lines above are obsolete. I started a toy project and the management commands are working properly without these lines.
The above lines are introduced in [11952].
Attachments (1)
Change History (5)
by , 14 years ago
Attachment: | obsolete_imports.diff added |
---|
comment:1 by , 14 years ago
Triage Stage: | Unreviewed → Ready for checkin |
---|
Confirmed that these imports are never used.
Perhaps a good pyflaking of the source is in order.
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 14 years ago
Note:
See TracTickets
for help on using tickets.
Removed obsolete import lines in django/core/management/sql.py