Unicode compatibility with python 3.
Python 3 distinguish butes and strings and strings are always unicode. That's why files need to be open in binary mode and proper encoding must be applied before write Bug: 1168119 Change-Id: I14b65600a736eda6ad263a011ab8886f1e521f64 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2642679Reviewed-by:Yuki Shiino <yukishiino@chromium.org> Reviewed-by:
Hitoshi Yoshida <peria@chromium.org> Commit-Queue: Yuki Shiino <yukishiino@chromium.org> Cr-Commit-Position: refs/heads/master@{#846004}
Showing
Please register or sign in to comment