usb_ids: Use io.open() instead of codecs.open() to avoid newline issues
Using codecs.open() results in a CR at the end of every product name's string. E.g. static const UsbProduct vendor_0001_products[] = {CRLF {0x7778, "Counterfeit flash drive [Kingston]CR "},CRLF };CRLF Use io.open() instead, which works as expected on both Python 2 and 3. Bug: 1058804 Change-Id: I3d77df0a248ccab57e1980a09977cf87720e5714 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2089696 Auto-Submit: Raul Tambre <raul@tambre.ee> Commit-Queue: Ken Rockot <rockot@google.com> Reviewed-by:Ken Rockot <rockot@google.com> Cr-Commit-Position: refs/heads/master@{#747351}
Showing
Please register or sign in to comment