Opened 4 years ago

Closed 4 years ago

#18572 closed Bug (fixed)

Django 1.5/Python26 string format incompatibility

Reported by: anonymous Owned by: nobody
Component: Uncategorized Version: master
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 Changed 4 years ago by Luke Plant

Triage Stage: UnreviewedAccepted

comment:2 Changed 4 years ago by Luke Plant <L.Plant.98@…>

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