summaryrefslogtreecommitdiff
path: root/testsuite/driver/testutil.py
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krz.gogolewski@gmail.com>2014-10-04 20:05:08 +0200
committerKrzysztof Gogolewski <krz.gogolewski@gmail.com>2014-10-04 20:05:08 +0200
commitb1aa203bb31a9c0edd3fe76b4d38ad7fce2b15f4 (patch)
tree98a658bb2f33cb9ba034c5369e6d2fc8231246c4 /testsuite/driver/testutil.py
parent8d95768c80baf47526d08b89e3beba24233fb448 (diff)
downloadhaskell-wip/python3-new.tar.gz
Restore Python 3 support (Trac #9184)wip/python3-new
This reverts commit e4a597f2f527ba0cd15cb51dda15cb51871c984e. Conflicts: testsuite/driver/testlib.py
Diffstat (limited to 'testsuite/driver/testutil.py')
-rw-r--r--testsuite/driver/testutil.py34
1 files changed, 0 insertions, 34 deletions
diff --git a/testsuite/driver/testutil.py b/testsuite/driver/testutil.py
index 0738683111..ec45e93987 100644
--- a/testsuite/driver/testutil.py
+++ b/testsuite/driver/testutil.py
@@ -1,39 +1,5 @@
# -----------------------------------------------------------------------------
# Utils
-
-def id(a):
- return a
-
-def eq(x):
- return lambda y,z=x: y == z
-
-def neq(x):
- return lambda y,z=x: y != z
-
-def append(x,y):
- return x + y
-
-def concat(xs):
- return reduce(append,xs,[])
-
-def chop(s):
- if s[len(s)-1:] == '\n':
- return s[:len(s)-1]
- else:
- return s
-
-def all(p,xs):
- for x in xs:
- if not p(x):
- return False
- return True
-
-def elem(xs):
- return lambda x: x in xs
-
-def notElem(xs):
- return lambda x: x not in xs
-
def version_to_ints(v):
return [ int(x) for x in v.split('.') ]