aboutsummaryrefslogtreecommitdiff
path: root/test/Scripts/prcontext.py
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-08 23:07:27 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-08 23:07:27 +0000
commit8690180f494fcd135f065a895b49ab15731efb4d (patch)
tree8ab6c512e42896a05228458038f0303dea17ebe0 /test/Scripts/prcontext.py
parenta23c0662dc7bb4150c5d7eeedaf985d8897cfb69 (diff)
Remove last remnants of Python/QMTest support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18672 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Scripts/prcontext.py')
-rwxr-xr-xtest/Scripts/prcontext.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/test/Scripts/prcontext.py b/test/Scripts/prcontext.py
deleted file mode 100755
index b91f618c57..0000000000
--- a/test/Scripts/prcontext.py
+++ /dev/null
@@ -1,29 +0,0 @@
-#
-# Usage:
-# prcontext <pattern> <# lines of context>
-#
-
-import sys
-
-#
-# Get the arguments
-#
-pattern=sys.argv[1]
-num=int(sys.argv[2])
-
-#
-# Get all of the lines in the file.
-#
-lines=sys.stdin.readlines()
-
-index=0
-for line in lines:
- if ((line.find(pattern)) != -1):
- if (index-num < 0):
- bottom=0
- else:
- bottom=index-num
- for output in lines[bottom:index+num+1]:
- print output[:-1]
- index=index+1
-