Opened 13 years ago
Closed 13 years ago
#18572 closed Bug (fixed)
Django 1.5/Python26 string format incompatibility
| Reported by: | anonymous | Owned by: | nobody |
|---|---|---|---|
| Component: | Uncategorized | Version: | dev |
| Severity: | Release blocker | Keywords: | Incompatibility |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description
Hi,
Python2.6 does not support unnumbered format strings. i.e.
It does *not* support:
'{}'.format('str')
It *does* support:
'{0}'.format('str')
This is used heavily in the django/utils/html.
Change History (2)
comment:1 by , 13 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:2 by , 13 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In [8fdc56d2a6f7537cdd52272501af9e94cab96ed4]: