Author: Remi Meier <remi.me...@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() _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit