[PATCH] D27404: Make asan_symbolize.py py3-compatible

Michał Górny via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 31 23:41:57 PST 2017


mgorny added inline comments.


================
Comment at: compiler-rt/trunk/lib/asan/scripts/asan_symbolize.py:106
+        print(symbolizer_input)
+      self.pipe.stdin.write("%s\n" % symbolizer_input)
       while True:
----------------
Not saying it's a problem but strictly speaking to preserve the original semantic, you could use:

    print(symbolizer_input, file=self.pipe.stdin)

+ at the top:

    from __future__ import print_function

(with the latter being a good idea anyway)


Repository:
  rL LLVM

https://reviews.llvm.org/D27404





More information about the llvm-commits mailing list