summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit/ShCommands.py
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-08 05:46:28 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-08 05:46:28 +0000
commitd89e08b3c07a3d312ae496375b99e2901b645fdf (patch)
tree053d2ae2d39734f30120e342ce994bf69a006a8b /llvm/utils/lit/ShCommands.py
parent12c77d73a90ca1a4c1448e3814560b0c3b55a850 (diff)
downloadbcm5719-llvm-d89e08b3c07a3d312ae496375b99e2901b645fdf.tar.gz
bcm5719-llvm-d89e08b3c07a3d312ae496375b99e2901b645fdf.zip
Fix typo that worked on python 2.6.
Also, fix unit tests. llvm-svn: 81194
Diffstat (limited to 'llvm/utils/lit/ShCommands.py')
-rw-r--r--llvm/utils/lit/ShCommands.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/utils/lit/ShCommands.py b/llvm/utils/lit/ShCommands.py
index be3e680e9e0..4550437ce22 100644
--- a/llvm/utils/lit/ShCommands.py
+++ b/llvm/utils/lit/ShCommands.py
@@ -1,5 +1,3 @@
-import ShUtil
-
class Command:
def __init__(self, args, redirects):
self.args = list(args)
@@ -26,6 +24,7 @@ class Command:
print >>file, quoted,
# For debugging / validation.
+ import ShUtil
dequoted = list(ShUtil.ShLexer(quoted).lex())
if dequoted != [arg]:
raise NotImplementedError,'Unable to quote %r' % arg
OpenPOWER on IntegriCloud