'cat' command for internal shell - Support Python 3
authorReid Kleckner <rnk@google.com>
Tue, 3 Apr 2018 22:38:25 +0000 (22:38 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 3 Apr 2018 22:38:25 +0000 (22:38 +0000)
commitbdbb712b6dbb0f353205f88dd1144bb3bd12841f
treea762b1f3b2a64a4a543aabb7695bc1ad995b0949
parente55aa03ad4605799d8c116ec45ae7474359f2a47
'cat' command for internal shell - Support Python 3

LLVM Bug Id : 36449

Revision 328563 caused tests to fail under python 3.

This patch modified cat.py file to support both python 2 and 3.
This patch also fixes CRLF issues on Windows.

Patch by Chamal de Silva

Differential Revision: https://reviews.llvm.org/D45077

llvm-svn: 329123
llvm/utils/lit/lit/builtin_commands/cat.py