Opened 3 years ago

Closed 3 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 3 years ago by lukeplant

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

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

  • Resolution set to fixed
  • Status changed from new to closed

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