[commit: ghc] wip/python3: Minor Python 3 compatibility fixes (0300812)

git at git.haskell.org git at git.haskell.org
Sat Sep 20 23:21:14 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/python3
Link       : http://ghc.haskell.org/trac/ghc/changeset/0300812c66663dbd9bf92b7d1a654305b08660a2/ghc

>---------------------------------------------------------------

commit 0300812c66663dbd9bf92b7d1a654305b08660a2
Author: Krzysztof Gogolewski <krz.gogolewski at gmail.com>
Date:   Sat Sep 20 23:49:45 2014 +0200

    Minor Python 3 compatibility fixes


>---------------------------------------------------------------

0300812c66663dbd9bf92b7d1a654305b08660a2
 testsuite/tests/perf/compiler/all.T | 2 +-
 testsuite/timeout/calibrate         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/testsuite/tests/perf/compiler/all.T b/testsuite/tests/perf/compiler/all.T
index a7783a4..9868fae 100644
--- a/testsuite/tests/perf/compiler/all.T
+++ b/testsuite/tests/perf/compiler/all.T
@@ -1,6 +1,6 @@
 def no_lint(name, opts):
    opts.compiler_always_flags = \
-       filter(lambda opt: opt != '-dcore-lint' and opt != '-dcmm-lint', opts.compiler_always_flags)
+       [opt for opt in opts.compiler_always_flags if opt != '-dcore-lint' and opt != '-dcmm-lint']
 
 setTestOpts(no_lint)
 
diff --git a/testsuite/timeout/calibrate b/testsuite/timeout/calibrate
index b0d75da..f30c628 100644
--- a/testsuite/timeout/calibrate
+++ b/testsuite/timeout/calibrate
@@ -10,7 +10,7 @@ except:
     # We don't have resource, so this is a non-UNIX machine.
     # It's probably a reasonable modern x86/x86_64 machines, so we'd
     # probably calibrate to 300 anyway; thus just print 300.
-    print 300
+    print(300)
     exit(0)
 
 compiler = argv[1]



More information about the ghc-commits mailing list