Opened 10 years ago
Closed 10 years ago
#26553 closed Cleanup/optimization (fixed)
Seemingly redundant outer loop in views/i18n.py
| Reported by: | Mark Shannon | Owned by: | nobody |
|---|---|---|---|
| Component: | Internationalization | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description
The outer loop here:
https://github.com/django/django/blob/master/django/views/i18n.py#L78
seems to be redundant.
The final value of result will be unchanged after the first iteration.
Change History (3)
comment:1 by , 10 years ago
| Component: | Uncategorized → Internationalization |
|---|---|
| Easy pickings: | set |
| Triage Stage: | Unreviewed → Accepted |
| Type: | Uncategorized → Cleanup/optimization |
| Version: | 1.9 → master |
Note:
See TracTickets
for help on using tickets.
Absolutely, see commit [d44fb0557a0a9d8fab62b] to understand what happened.