[pypy-svn] r77443 - pypy/trunk/pypy/tool
antocuni at codespeak.net
antocuni at codespeak.net
Tue Sep 28 14:53:59 CEST 2010
Author: antocuni
Date: Tue Sep 28 14:53:57 2010
New Revision: 77443
Modified:
pypy/trunk/pypy/tool/progressbar.py
Log:
use a simple ascii dot instead of an unicode character encoded as ut8 and
stored as a plain string. This fixes the progress bar in all the terminals
without unicode support, such as mine :-)
Modified: pypy/trunk/pypy/tool/progressbar.py
==============================================================================
--- pypy/trunk/pypy/tool/progressbar.py (original)
+++ pypy/trunk/pypy/tool/progressbar.py Tue Sep 28 14:53:57 2010
@@ -17,11 +17,11 @@
)
PADDING = 7
- def __init__(self, color=None, width=None, block='█', empty=' '):
+ def __init__(self, color=None, width=None, block='.', empty=' '):
"""
color -- color name (BLUE GREEN CYAN RED MAGENTA YELLOW WHITE BLACK)
width -- bar width (optinal)
- block -- progress display character (default '█')
+ block -- progress display character (default '.')
empty -- bar display character (default ' ')
"""
if color:
More information about the Pypy-commit
mailing list