Use six.text_type rather than str.encode('utf-8') 40/15840/3
authorEric Ball <eball@linuxfoundation.org>
Fri, 7 Jun 2019 13:59:20 +0000 (06:59 -0700)
committerEric Ball <eball@linuxfoundation.org>
Tue, 11 Jun 2019 00:41:37 +0000 (17:41 -0700)
commite99dca16eef12f2e09c7911cc145ed637f9584bc
tree44c066b9fada3b0729dfa813e53e0e4b00a3c64d
parent30485dec80d49c890b64f2b6c6555a90b9575860
Use six.text_type rather than str.encode('utf-8')

Encoding the string in Python 3 results in a bytes object rather
than str. To avoid this, use six.text_type method, which is designed
to safely perform this function in Python 2 and 3.

Change-Id: Ice7f02f4c02fd71d115af627d5b15622cd04d35d
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
lftools/deploy.py
releasenotes/notes/no-encode-py3-44307e6fd97c2d0c.yaml [new file with mode: 0644]