Merge lp:~cjwatson/lazr.restful/py3-no-str-decode into lp:lazr.restful
Proposed by
Colin Watson
Status: | Merged |
---|---|
Merged at revision: | 261 |
Proposed branch: | lp:~cjwatson/lazr.restful/py3-no-str-decode |
Merge into: | lp:lazr.restful |
Diff against target: |
13 lines (+1/-2) 1 file modified
src/lazr/restful/example/base/interfaces.py (+1/-2) |
To merge this branch: | bzr merge lp:~cjwatson/lazr.restful/py3-no-str-decode |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ioana Lasc (community) | Approve | ||
Review via email: mp+390204@code.launchpad.net |
Commit message
Avoid calling str.decode on Python 3.
Description of the change
Cuisine.FRANCAISE was being initialised using str.decode, which won't work on Python 3. We could use bytes.decode instead, but in this case it's simpler and clearer to just use Unicode strings directly.
To post a comment you must log in.