Opened 9 months ago

Closed 6 months ago

Last modified 6 months ago

#22820 closed Bug (fixed)

lazy_number raise KeyError if number is long type (python 2.7)

Reported by: kwist Owned by: nobody
Component: Translations Version: 1.6
Severity: Normal Keywords: translation lazy_number
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: yes Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

lazy_number raise KeyError in python 2.7 if number is long type.

Patch: https://github.com/django/django/pull/2801

Change History (5)

comment:1 Changed 9 months ago by kwist

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Summary changed from lazy_number for python 2.7 fail to lazy_number raise KeyError if number is long type (python 2.7)

comment:2 Changed 9 months ago by timo

  • Needs tests set
  • Triage Stage changed from Unreviewed to Accepted

Can you add a test?

comment:4 Changed 6 months ago by Claude Paroz <claude@…>

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

In 502142179996e32e1c7f334c3d986f21115cfac8:

Fixed #22820 -- Treated int and long types alike in lazy_number

Thanks kwist for the report and the initial patch.

comment:5 Changed 6 months ago by Claude Paroz <claude@…>

In d839c756645b5091d55f67bbc4ff10718ff61a6b:

[1.7.x] Fixed #22820 -- Treated int and long types alike in lazy_number

Thanks kwist for the report and the initial patch.
Backport of 5021421799 from master.

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