[pypy-commit] benchmarks default: move "import Image" so that it is not required for the benchmark
Raemi
noreply at buildbot.pypy.org
Tue Apr 8 15:40:01 CEST 2014
Author: Remi Meier <remi.meier at inf.ethz.ch>
Branch:
Changeset: r245:08c5d23c7221
Date: 2014-04-08 15:40 +0200
http://bitbucket.org/pypy/benchmarks/changeset/08c5d23c7221/
Log: move "import Image" so that it is not required for the benchmark
diff --git a/multithread/mandelbrot/mandelbrot.py b/multithread/mandelbrot/mandelbrot.py
--- a/multithread/mandelbrot/mandelbrot.py
+++ b/multithread/mandelbrot/mandelbrot.py
@@ -1,5 +1,5 @@
from common.abstract_threading import Future, atomic
-import Image, sys
+import sys
def calculate(a, b, im_size, max_iter=255):
@@ -28,6 +28,7 @@
return result
def save_img(image, file_name='out.png'):
+ import Image
im = Image.new("RGB", (len(image[0]), len(image)))
out = im.load()
More information about the pypy-commit
mailing list