[PATCH] D37946: [lit] Fix some Python 3 compatibility issues.
David L. Jones via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 18 16:17:46 PDT 2017
dlj added inline comments.
================
Comment at: llvm/utils/lit/lit/TestRunner.py:286
+
+ arg = lit.util.to_bytes(arg)
+ codec = 'string_escape' if sys.version_info < (3,0) else 'unicode_escape'
----------------
So I have to admit that here, I'm not sure exactly what corner cases are problematic... but would lit.util.to_string give you the correct result?
https://reviews.llvm.org/D37946
More information about the llvm-commits
mailing list