Reviewed: https://review.opendev.org/564874 Committed: https://git.openstack.org/cgit/openstack/pbr/commit/?id=3b102a551bb2518682a0da4e6065feeb7f20807a Submitter: Zuul Branch: master
commit 3b102a551bb2518682a0da4e6065feeb7f20807a Author: Ben Nemec <email address hidden> Date: Fri Apr 27 20:11:53 2018 +0000
Read description file as utf-8
Currently pbr fails if the description file contains unicode characters. To fix this we need to open the description file as utf-8 explicitly. Since open() in Python 2 doesn't support an encoding parameter, use io.open() which works on both 2 and 3.
Co-Authored-By: Hervé Beraud<email address hidden>
Change-Id: I1bee502ac84b474cc9db5523d2437a8c0a861c00 Closes-Bug: 1704472
Reviewed: https:/ /review. opendev. org/564874 /git.openstack. org/cgit/ openstack/ pbr/commit/ ?id=3b102a551bb 2518682a0da4e60 65feeb7f20807a
Committed: https:/
Submitter: Zuul
Branch: master
commit 3b102a551bb2518 682a0da4e6065fe eb7f20807a
Author: Ben Nemec <email address hidden>
Date: Fri Apr 27 20:11:53 2018 +0000
Read description file as utf-8
Currently pbr fails if the description file contains unicode
characters. To fix this we need to open the description file as
utf-8 explicitly. Since open() in Python 2 doesn't support an
encoding parameter, use io.open() which works on both 2 and 3.
Co-Authored-By: Hervé Beraud<email address hidden>
Change-Id: I1bee502ac84b47 4cc9db5523d2437 a8c0a861c00
Closes-Bug: 1704472