<div dir="ltr">Hi,<div><br></div><div>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 python3.</div><div><br></div><div>Here is an exception form python3 gate:</div>
<div>Server-side error: "global name 'unicode' is not defined". Detail: 2013-12-04 Traceback (most recent call last): File "/home/jenkins/workspace/gate-solum-python33/.tox/py33/lib/python3.3/site-packages/wsmeext/pecan.py"</div>
<div> result = f(self, *args, **kwargs) </div><div> File "./solum/api/controllers/v1/assembly.py", line 59, in get </div><div>raise wsme.exc.ClientSideError(unicode(error)) </div><div>NameError: global name 'unicode' is not defined </div>
<div><br></div><div>Here is a documentation for python3: <a href="http://docs.python.org/3.0/whatsnew/3.0.html">http://docs.python.org/3.0/whatsnew/3.0.html</a></div><div><br></div><div>Quick summary: you can't use unicode() function and u' ' strings in Pyhton3.</div>
<div><br></div><div>Thanks</div><div>Georgy <br>
</div></div>