]> 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)
committerarmando-migliaccio <armamig@gmail.com>
Fri, 2 Oct 2015 16:26:08 +0000 (09:26 -0700)
commit677687a3aad20e61f47b3ecbc9b0f4686e817653
tree25f71bd2fae9761d8199f99bd62b9cc3be367886
parentfa2b18c45ae0e7aefa0a0b454c5b7b4e9a05f63a
/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
(cherry picked from commit 3d54459c2971f01581354c8a6b9c58abea7743d8)
neutron/common/utils.py
neutron/tests/unit/common/test_utils.py