Merge ~cjwatson/launchpad:py3-remove-ensure-unicode into launchpad:master
Proposed by
Colin Watson
Status: | Merged |
---|---|
Approved by: | Colin Watson |
Approved revision: | 1f39584a161307acd13145234dd3244e8ba8fdd4 |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~cjwatson/launchpad:py3-remove-ensure-unicode |
Merge into: | launchpad:master |
Diff against target: |
262 lines (+16/-68) 8 files modified
lib/lp/registry/model/sourcepackagename.py (+1/-2) lib/lp/registry/vocabularies.py (+5/-8) lib/lp/services/helpers.py (+0/-45) lib/lp/services/webapp/vocabulary.py (+2/-3) lib/lp/services/worlddata/model/language.py (+1/-2) lib/lp/soyuz/model/binarypackagename.py (+3/-4) lib/lp/soyuz/model/packageset.py (+1/-2) lib/lp/soyuz/scripts/initialize_distroseries.py (+3/-2) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Cristian Gonzalez (community) | Approve | ||
Review via email: mp+399093@code.launchpad.net |
Commit message
Remove deprecated ensure_unicode function
Description of the change
This is equivalent to `six.ensure_text` (strictly with `encoding='ASCII'`, although that doesn't seem necessary in search methods) if the input string is not None. It may be that we could get away without some of these `six.ensure_text` calls, but let's just keep it simple for now; we can drop them more easily once we're on Python 3 everywhere.
To post a comment you must log in.
Looks good!