Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | get_term_size: handle missing stty command | Zac Medico | 2012-07-27 | 1 | -2/+9 |
| | |||||
* | get_term_size: pass fd to stty | Zac Medico | 2012-07-27 | 1 | -2/+6 |
| | |||||
* | get_term_size: pass fd to curses.setupterm() | Zac Medico | 2012-07-27 | 1 | -1/+2 |
| | |||||
* | get_term_size: handle temporary stdout overrides | Zac Medico | 2012-07-27 | 1 | -1/+3 |
| | |||||
* | output: allow to use stderr in TermProgressBar | Corentin Chary | 2012-07-23 | 1 | -6/+6 |
| | |||||
* | TermProgressBar: fix broken ref to "image" var | Zac Medico | 2012-07-22 | 1 | -1/+1 |
| | | | | Broken since commit 0623e44a500125064525413404948af9179747a9. | ||||
* | get_term_size: check if sys.stderr.isatty() | Federico "fox" Scrinzi | 2012-07-22 | 1 | -1/+1 |
| | |||||
* | fix a couple more inconsistancies in the progessbar title, label changes. | Brian Dolbec | 2012-07-09 | 1 | -11/+7 |
| | |||||
* | TermProgressBar: Fix to do 80 chars (not 81) | Brian Dolbec | 2012-07-09 | 1 | -2/+2 |
| | |||||
* | apply Federico "fox" Scrinzi progressbar additions of title and label ↵ | Brian Dolbec | 2012-07-09 | 1 | -4/+26 |
| | | | | display. Fix a couple bugs and add max_desc_length param. | ||||
* | portageq: add "colormap" helper | Mike Frysinger | 2012-03-11 | 1 | -0/+6 |
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> | ||||
* | get_term_size: all values >= 0 for bug #394091 | Zac Medico | 2011-12-10 | 1 | -5/+10 |
| | |||||
* | Convert create_color_func into a class. | Zac Medico | 2011-10-01 | 1 | -6/+6 |
| | |||||
* | python3.2 fixes: ResourceWarning: unclosed file | Zac Medico | 2011-08-24 | 1 | -3/+9 |
| | |||||
* | Use portage.subprocess_getstatusoutput() more. | Zac Medico | 2011-07-12 | 1 | -5/+1 |
| | |||||
* | Migrate from codecs.open() to io.open(). | Zac Medico | 2011-07-10 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | The io.open() function is the same as the built-in open() function in python3, and its implementation is optimized in python-2.7 and later. In addition to the possible performance improvement, this also allows us to avoid any future compatibility issues with codecs.open() that may arise if it is delegated to the built-in open() function as discussed in PEP 400. The main caveat involved with io.open() is that TextIOWrapper.write() raises TypeError if given raw bytes, unlike the streams returned from codecs.open(). This is mainly an issue for python2 since literal strings are raw bytes. We handle this by wrapping TextIOWrapper.write() arguments with our _unicode_decode() function. Also, the atomic_ofstream class overrides the write() method in python2 so that it performs automatic coercion to unicode when necessary. | ||||
* | Fix some typos. | Arfrever Frehtes Taifersar Arahesis | 2011-05-15 | 1 | -2/+2 |
| | |||||
* | xtermTitleReset: revert behavior for bug #348460 | Zac Medico | 2010-12-12 | 1 | -1/+1 |
| | |||||
* | Make EOutput.write() use writemsg() for special unicode handling. | Zac Medico | 2010-08-22 | 1 | -6/+1 |
| | |||||
* | Use os.environ.get() instead of os.getenv(), to hopefully avoid issues | Zac Medico | 2010-05-20 | 1 | -4/+5 |
| | | | | with python-3.2 reported by Arfrever. | ||||
* | Remove all svn $Id keywords. | Zac Medico | 2010-03-24 | 1 | -1/+0 |
| | |||||
* | Bug #309149 - Unify look of eend used in bash & python code, additionally | Zac Medico | 2010-03-20 | 1 | -5/+2 |
| | | | | | | | fixing few inconsistences in bash code. Thanks to Michał Górny <gentoo@mgorny.alt.pl> for this patch. svn path=/main/trunk/; revision=15839 | ||||
* | Add new colors for binary packages in the merge list. Thanks to Sebastian | Zac Medico | 2010-03-03 | 1 | -0/+3 |
| | | | | | | Luther (few) for this patch. svn path=/main/trunk/; revision=15739 | ||||
* | Tweak TERM usage in xtermTitleReset() to match that in xtermTitle(). | Zac Medico | 2010-01-11 | 1 | -1/+4 |
| | | | | svn path=/main/trunk/; revision=15190 | ||||
* | Don't assign f to sys.stderr inside EOutput._write(). | Zac Medico | 2009-12-08 | 1 | -1/+0 |
| | | | | svn path=/main/trunk/; revision=14970 | ||||
* | Bug #290625 - Manually encode output to stdout in python3, in order to avoid | Zac Medico | 2009-10-26 | 1 | -13/+21 |
| | | | | | | potential UnicodeEncodeError exceptions. svn path=/main/trunk/; revision=14734 | ||||
* | Use dict.(keys|values|items)() instead of ↵ | Arfrever Frehtes Taifersar Arahesis | 2009-09-21 | 1 | -2/+2 |
| | | | | | | | | dict.(iterkeys|itervalues|iteritems)() for compatibility with Python 3. (2to3-3.1 -f dict -nw ${FILES}) svn path=/main/trunk/; revision=14327 | ||||
* | Use range() instead of xrange() for compatibility with Python 3. | Arfrever Frehtes Taifersar Arahesis | 2009-09-21 | 1 | -2/+2 |
| | | | | | | (2to3-3.1 -f xrange -nw ${FILES}) svn path=/main/trunk/; revision=14317 | ||||
* | Add support in ConsoleStyleFile.write() for unicode encoding when writing to | Zac Medico | 2009-09-20 | 1 | -5/+15 |
| | | | | | | stdout/stderr in python-2.x. svn path=/main/trunk/; revision=14303 | ||||
* | Misc unicode fixes for repoman. | Zac Medico | 2009-09-20 | 1 | -0/+5 |
| | | | | svn path=/main/trunk/; revision=14302 | ||||
* | Use _unicode_encode() to ensure that only unicode strings are passed into | Zac Medico | 2009-09-20 | 1 | -0/+7 |
| | | | | | | io.StringIO text streams. svn path=/main/trunk/; revision=14301 | ||||
* | Update system imports for compatibility with Python 3. | Arfrever Frehtes Taifersar Arahesis | 2009-09-20 | 1 | -2/+5 |
| | | | | svn path=/main/trunk/; revision=14294 | ||||
* | Update syntax of 'except' statements for compatibility with Python 3. | Arfrever Frehtes Taifersar Arahesis | 2009-09-20 | 1 | -3/+3 |
| | | | | | | (2to3-3.1 -f except -nw ${FILES}) svn path=/main/trunk/; revision=14289 | ||||
* | remove FIXME, since zmedico fixed it | Fabian Groffen | 2009-08-24 | 1 | -5/+0 |
| | | | | svn path=/main/trunk/; revision=14140 | ||||
* | Bug #282269, comment #2 - Avoid potential UnicodeEncodeError when writing | Zac Medico | 2009-08-22 | 1 | -0/+3 |
| | | | | | | to sys.stderr inside xtermTitle(). svn path=/main/trunk/; revision=14126 | ||||
* | Use _encodings where appropriate and add _encodings['stdio'] for stdout | Zac Medico | 2009-08-21 | 1 | -5/+4 |
| | | | | | | encoding. svn path=/main/trunk/; revision=14111 | ||||
* | Use _content_encoding and _fs_encoding where appropriate. | Zac Medico | 2009-08-18 | 1 | -5/+8 |
| | | | | svn path=/main/trunk/; revision=14084 | ||||
* | Implement lazy loading of color.map when either the codes or _styles | Zac Medico | 2009-08-18 | 1 | -12/+45 |
| | | | | | | | | attribute is accessed. This provides and _init(config_root='/') function that the prefix branch can use to substitute an appropriate config_root value at runtime. svn path=/main/trunk/; revision=14083 | ||||
* | Prepare 308 messages to localization. | Arfrever Frehtes Taifersar Arahesis | 2009-08-15 | 1 | -11/+9 |
| | | | | svn path=/main/trunk/; revision=14067 | ||||
* | Fix EOutput to safely write unicode to stderr/stdout. Thanks to Arfrever for | Zac Medico | 2009-08-09 | 1 | -14/+17 |
| | | | | | | reporting. svn path=/main/trunk/; revision=13964 | ||||
* | Always pass encodings='utf_8' to codecs.open(), since otherwise it can | Zac Medico | 2009-07-20 | 1 | -1/+2 |
| | | | | | | | | | | return non-unicode strings (at least in some cases, observed with python-2.6.2). Don't use unicode in portage.util.getconfig() for now, since shlex doesn't seem to support it (spurious \0 characters). If we use unicode for config variables, it breaks shlex.split() calls on those variables due to the same issue (spurious \0 characters). svn path=/main/trunk/; revision=13845 | ||||
* | Remove leading slash from appropriate paths inside portage.const, so that | Zac Medico | 2009-07-12 | 1 | -1/+7 |
| | | | | | | | lstrip(os.sep) is not needed for os.path.join() calls. Thanks to Fabian Groffen <grobian@g.o> for this patch. svn path=/main/trunk/; revision=13821 | ||||
* | Rename color_codes back to codes. | Zac Medico | 2009-06-17 | 1 | -70/+70 |
| | | | | svn path=/main/trunk/; revision=13648 | ||||
* | Rename codes to _styles. | Zac Medico | 2009-06-17 | 1 | -30/+30 |
| | | | | svn path=/main/trunk/; revision=13647 | ||||
* | Rename map_code_to_color_code() to style_to_ansi_code(). | Zac Medico | 2009-06-17 | 1 | -5/+12 |
| | | | | svn path=/main/trunk/; revision=13646 | ||||
* | Add epydoc docstrings fro codes and color_codes variables. | Zac Medico | 2009-06-17 | 1 | -0/+3 |
| | | | | svn path=/main/trunk/; revision=13645 | ||||
* | Use map_code_to_color_code() where appropriate inside ConsoleStyleFile.write(). | Zac Medico | 2009-06-17 | 1 | -1/+1 |
| | | | | svn path=/main/trunk/; revision=13644 | ||||
* | Bug #274279 - Add color.map support for mapping a color to a different color | Zac Medico | 2009-06-16 | 1 | -148/+148 |
| | | | | | | | (rather than just mapping a class/style to a different color). Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch. svn path=/main/trunk/; revision=13643 | ||||
* | Make xtermTitle() use a global variable to cache the result of the TERM check. | Zac Medico | 2009-04-29 | 1 | -13/+17 |
| | | | | svn path=/main/trunk/; revision=13410 | ||||
* | Use lazyimport to avoid importing the checksum, locks, and util modules | Zac Medico | 2009-02-22 | 1 | -2/+7 |
| | | | | | | when portage is initially imported. svn path=/main/trunk/; revision=12680 |