diff options
| author | Reid Kleckner <rnk@google.com> | 2017-07-11 16:12:53 +0000 |
|---|---|---|
| committer | Reid Kleckner <rnk@google.com> | 2017-07-11 16:12:53 +0000 |
| commit | f7d0d0fece0287c41039ade6f34ee827ec646802 (patch) | |
| tree | 842f2f386d4caaddc1b2c69ba8f5fb32d3c853c5 /llvm/utils/lit | |
| parent | 14e1d55b0da331e7c7c0634f6c6c626229d4fd0e (diff) | |
| download | bcm5719-llvm-f7d0d0fece0287c41039ade6f34ee827ec646802.tar.gz bcm5719-llvm-f7d0d0fece0287c41039ade6f34ee827ec646802.zip | |
[lit] Fix import StringIO errors in Python 3
Remove the cStringIO micro-optimization, as it isn't portable to Python
3.
llvm-svn: 307669
Diffstat (limited to 'llvm/utils/lit')
| -rw-r--r-- | llvm/utils/lit/lit/TestRunner.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/utils/lit/lit/TestRunner.py b/llvm/utils/lit/lit/TestRunner.py index f80360491b8..8260d381334 100644 --- a/llvm/utils/lit/lit/TestRunner.py +++ b/llvm/utils/lit/lit/TestRunner.py @@ -6,9 +6,9 @@ import tempfile import threading try: - import cStringIO as StringIO + from StringIO import StringIO except ImportError: - import StringIO + from io import StringIO from lit.ShCommands import GlobItem import lit.ShUtil as ShUtil @@ -240,7 +240,7 @@ def executeBuiltinEcho(cmd, shenv): is_redirected = True if stdout == subprocess.PIPE: is_redirected = False - stdout = StringIO.StringIO() + stdout = StringIO() elif kIsWindows: # Reopen stdout in binary mode to avoid CRLF translation. The versions # of echo we are replacing on Windows all emit plain LF, and the LLVM |

