<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Am I interpreting this to mean that WSME is calling unicode()?
<div><br>
<div>
<div>On Dec 4, 2013, at 1:32 PM, Georgy Okrokvertskhov <<a href="mailto:gokrokvertskhov@mirantis.com">gokrokvertskhov@mirantis.com</a>></div>
<div> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<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>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev<br>
</blockquote>
</div>
<br>
</div>
</body>
</html>