This patch is squashed from my two private commits.
asan_symbolize.py: [Py3] Get rid of "print" statement. Use print() or write() instead.
Let me know if style issues anything.
asan_symbolize.py: [Py3] Use text mode with universal_newlines=True for Popen. With universal_newlines, readline() stalls to fill the buffer. Therefore, let the pipe unbuffered. FIXME: Use Popen.communicate()
ATM, I didn't touch their logic. I think they may be rewritten in future.
Tested both 2.7.6 and 3.4.3 on Ubuntu. Not tested on Windows yet.
Not saying it's a problem but strictly speaking to preserve the original semantic, you could use:
+ at the top:
(with the latter being a good idea anyway)