Message.translate is not compatible with str.translate
Bug #1656831 reported by
Thomas Herve
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.i18n |
Expired
|
Undecided
|
Unassigned |
Bug Description
The Message class inherits from str, but implements an incompatible version of the translate method : instead of taking an escape table [1], it takes an optional locale name. See http://
It's hard to know what to do at this point. We should rename the translate method, but it looks like part of the public API, though I doubt it's used a lot.
[1] https:/
Changed in oslo.i18n: | |
status: | New → Incomplete |
To post a comment you must log in.
https:/ /review. openstack. org/#/c/ 420736/ is an attempt.