[PATCH] D56754: Add Support for Creating and Deleting Unicode Files and Directories in Lit

serge via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 16 07:09:24 PST 2019


serge-sans-paille added inline comments.


================
Comment at: utils/lit/lit/TestRunner.py:1110
+            f.write('{ ' + '; } &&\n{ '.join(commands) + '; }')
+    f.write(b'\n' if mode == 'wb' else '\n')
     f.close()
----------------
I'm not 100% sure here, but this looks very redundant and non-maintainable. Why not always open the file in binary mode?


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56754/new/

https://reviews.llvm.org/D56754





More information about the llvm-commits mailing list