Opened 12 years ago

Closed 12 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 Luke Plant, 12 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Luke Plant <L.Plant.98@…>, 12 years ago

Resolution: fixed
Status: newclosed

In [8fdc56d2a6f7537cdd52272501af9e94cab96ed4]:

Fixed #18572 - Python26 string format incompatibility

Thanks to anonymous/AeroNotix for the report

Note: See TracTickets for help on using tickets.
Back to Top