Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#17798 closed Cleanup/optimization (fixed)

minor changes in localflavor.ca.ca_provinces

Reported by: Sergiy Kuzmenko Owned by: nobody
Component: contrib.localflavor Version: 1.3
Severity: Normal Keywords:
Cc: lemaire.adrien@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Two changes:

1) Removed RuntimeWarning (seen it enough in 1.3)

2) Added "pq" to PROVINCES_NORMALIZED (PQ is the old code for Quebec which stood for the "Province of Quebec")

Patch attached. I assume no tests are required for this type of change.

Attachments (1)

ca_provinces.py.patch (1.7 KB ) - added by Sergiy Kuzmenko 13 years ago.
Patch with test and doc

Download all attachments as: .zip

Change History (11)

comment:1 by Jannis Leidel, 13 years ago

Easy pickings: set
Needs tests: set
Triage Stage: UnreviewedAccepted

comment:2 by Jannis Leidel, 13 years ago

Needs documentation: set

comment:3 by Sergiy Kuzmenko, 13 years ago

I'm not sure about documentation. PROVINCES_NORMALIZED is just an implementation detail which isn't documented anywhere presently and adding an extra key to it isn't worth mentioning anyway. RuntimeWarning was to warn users upgrading to 1.3 that there were recent changes in province codes. In 1.4 those changes aren't recent anymore.

comment:4 by Russell Keith-Magee, 13 years ago

@shelldweller:

When we make changes to a localflavor reflecting changes in provinces/codes etc, we generally list them in the release notes. For example, in 1.3, we corrected the code for the Yukon territory, and documented it in the release notes. In this case, it's not a backwards incompatible change, but the release notes are still the right place for a note.

by Sergiy Kuzmenko, 13 years ago

Attachment: ca_provinces.py.patch added

Patch with test and doc

comment:5 by Adrien Lemaire, 13 years ago

Needs documentation: unset

EDIT: tests are ok.

Documentation is ok.

Last edited 13 years ago by Adrien Lemaire (previous) (diff)

comment:6 by Adrien Lemaire, 13 years ago

Needs tests: unset
Triage Stage: AcceptedReady for checkin

comment:7 by Adrien Lemaire, 13 years ago

Cc: lemaire.adrien@… added

comment:8 by Aymeric Augustin, 12 years ago

Resolution: fixed
Status: newclosed

Fixed #17798 -- Tweaked the CA localflavor.

Thanks shelldweller.

Changeset: 46648b641d86b663f825227df5af5473f13a3fb4

comment:9 by Aymeric Augustin, 12 years ago

Fixed #17798 -- Tweaked the CA localflavor.

Thanks shelldweller.

Changeset: 46648b641d86b663f825227df5af5473f13a3fb4

comment:10 by Aymeric Augustin, 12 years ago

Fixed #17798 -- Tweaked the CA localflavor.

Thanks shelldweller.

Changeset: 46648b641d86b663f825227df5af5473f13a3fb4

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