[openstack-dev] [Solum] Unicode strings in Python3

Georgy Okrokvertskhov gokrokvertskhov at mirantis.com
Wed Dec 4 21:32:41 UTC 2013


I am working on unit tests for Solum as a side effect of new unit tests I
found that we use unicode strings in the way which is not compatible with

Here is an exception form python3 gate:
Server-side error: "global name 'unicode' is not defined". Detail:
2013-12-04 Traceback (most recent call last): File
 result = f(self, *args, **kwargs)
 File "./solum/api/controllers/v1/assembly.py", line 59, in get
raise wsme.exc.ClientSideError(unicode(error))
NameError: global name 'unicode' is not defined

Here is a documentation for python3:

Quick summary: you can't use unicode() function and u' ' strings in Pyhton3.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20131204/a4f72d6b/attachment.html>

More information about the OpenStack-dev mailing list