]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Python 3: pass bytes to base64.encode{string,bytes}
authorCyril Roelandt <cyril@redhat.com>
Tue, 28 Jul 2015 14:43:00 +0000 (16:43 +0200)
committerCyril Roelandt <cyril@redhat.com>
Fri, 31 Jul 2015 15:50:46 +0000 (17:50 +0200)
commit74cdfb1bab12bf54bbc64267c5fb92cc35d6b40b
treefdd35f807f62f61f909e89397d3cae9e5f34d789
parent94dea108280322831b889a83ff711f8ce31e1885
Python 3: pass bytes to base64.encode{string,bytes}

In Python 3, base64.encodestring expects bytes. Also, base64.encodebytes should
be used in order not to trigger a DeprecationWarning.

Change-Id: Iaae377b612feda7e01963f0d527c898bc0fd21d1
Blueprint: neutron-python3
neutron/plugins/cisco/n1kv/n1kv_client.py