Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3674>
args = parser.parse_args()
# This generator opens and writes the file itself, and it does so in bytes
- # mode. This solves both python 2 vs 3 problems and solves the locale
- # problem: Unicode can be rendered even if the shell calling this script
- # doesn't.
+ # mode. This solves the locale problem: Unicode can be rendered even
+ # if the shell calling this script doesn't.
with open(args.out, 'wb') as f:
formats = [Format(l) for l in reader(args.csv)]
try: