[pypy-svn] r41243 - pypy/dist/pypy/tool
xoraxax at codespeak.net
xoraxax at codespeak.net
Sat Mar 24 18:02:30 CET 2007
Author: xoraxax
Date: Sat Mar 24 18:02:28 2007
New Revision: 41243
Modified:
pypy/dist/pypy/tool/ansi_mandelbrot.py
Log:
In case of zero-width terminals, use 1 as the width for the mandelbrot code.
Modified: pypy/dist/pypy/tool/ansi_mandelbrot.py
==============================================================================
--- pypy/dist/pypy/tool/ansi_mandelbrot.py (original)
+++ pypy/dist/pypy/tool/ansi_mandelbrot.py Sat Mar 24 18:02:28 2007
@@ -110,7 +110,7 @@
self.init()
def init(self):
- self.width = get_terminal_width()
+ self.width = get_terminal_width() or 1
self.mandelbrot = Mandelbrot(width=self.width, **self.kwargs)
self.mandelbrot.init()
self.gen = self.mandelbrot.generate()
More information about the Pypy-commit
mailing list