]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
/common/utils.py py34 incompatibility
authorBogdan Tabor <bogdan.tabor@ericpol.com>
Wed, 23 Sep 2015 08:52:25 +0000 (10:52 +0200)
committerBogdan Tabor <bogdan.tabor@ericpol.com>
Fri, 2 Oct 2015 14:13:20 +0000 (16:13 +0200)
commit3d54459c2971f01581354c8a6b9c58abea7743d8
tree2df6052a9d7b5e0e33208f62d7be048c46a4b059
parentfee48aa108ffff25a77a5aeb486cdba1e4302e86
/common/utils.py py34 incompatibility

Fixes bug found during unit test of get_random_string() method.
For Python3 it is required to encode string as bytes object
before hashing.

Related-blueprint: neutron-python3
Closes-bug: #1502148
Change-Id: I93061a831b45fc8b3ede0211af665ce02f36f38a
neutron/common/utils.py
neutron/tests/unit/common/test_utils.py