summaryrefslogtreecommitdiffstats
path: root/pym/portage/output.py
Commit message (Collapse)AuthorAgeFilesLines
* get_term_size: handle missing stty commandZac Medico2012-07-271-2/+9
|
* get_term_size: pass fd to sttyZac Medico2012-07-271-2/+6
|
* get_term_size: pass fd to curses.setupterm()Zac Medico2012-07-271-1/+2
|
* get_term_size: handle temporary stdout overridesZac Medico2012-07-271-1/+3
|
* output: allow to use stderr in TermProgressBarCorentin Chary2012-07-231-6/+6
|
* TermProgressBar: fix broken ref to "image" varZac Medico2012-07-221-1/+1
| | | | Broken since commit 0623e44a500125064525413404948af9179747a9.
* get_term_size: check if sys.stderr.isatty()Federico "fox" Scrinzi2012-07-221-1/+1
|
* fix a couple more inconsistancies in the progessbar title, label changes.Brian Dolbec2012-07-091-11/+7
|
* TermProgressBar: Fix to do 80 chars (not 81)Brian Dolbec2012-07-091-2/+2
|
* apply Federico "fox" Scrinzi progressbar additions of title and label ↵Brian Dolbec2012-07-091-4/+26
| | | | display. Fix a couple bugs and add max_desc_length param.
* portageq: add "colormap" helperMike Frysinger2012-03-111-0/+6
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* get_term_size: all values >= 0 for bug #394091Zac Medico2011-12-101-5/+10
|
* Convert create_color_func into a class.Zac Medico2011-10-011-6/+6
|
* python3.2 fixes: ResourceWarning: unclosed fileZac Medico2011-08-241-3/+9
|
* Use portage.subprocess_getstatusoutput() more.Zac Medico2011-07-121-5/+1
|
* Migrate from codecs.open() to io.open().Zac Medico2011-07-101-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 Arahesis2011-05-151-2/+2
|
* xtermTitleReset: revert behavior for bug #348460Zac Medico2010-12-121-1/+1
|
* Make EOutput.write() use writemsg() for special unicode handling.Zac Medico2010-08-221-6/+1
|
* Use os.environ.get() instead of os.getenv(), to hopefully avoid issuesZac Medico2010-05-201-4/+5
| | | | with python-3.2 reported by Arfrever.
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Bug #309149 - Unify look of eend used in bash & python code, additionallyZac Medico2010-03-201-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 SebastianZac Medico2010-03-031-0/+3
| | | | | | Luther (few) for this patch. svn path=/main/trunk/; revision=15739
* Tweak TERM usage in xtermTitleReset() to match that in xtermTitle().Zac Medico2010-01-111-1/+4
| | | | svn path=/main/trunk/; revision=15190
* Don't assign f to sys.stderr inside EOutput._write().Zac Medico2009-12-081-1/+0
| | | | svn path=/main/trunk/; revision=14970
* Bug #290625 - Manually encode output to stdout in python3, in order to avoidZac Medico2009-10-261-13/+21
| | | | | | potential UnicodeEncodeError exceptions. svn path=/main/trunk/; revision=14734
* Use dict.(keys|values|items)() instead of ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-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 Arahesis2009-09-211-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 toZac Medico2009-09-201-5/+15
| | | | | | stdout/stderr in python-2.x. svn path=/main/trunk/; revision=14303
* Misc unicode fixes for repoman.Zac Medico2009-09-201-0/+5
| | | | svn path=/main/trunk/; revision=14302
* Use _unicode_encode() to ensure that only unicode strings are passed intoZac Medico2009-09-201-0/+7
| | | | | | io.StringIO text streams. svn path=/main/trunk/; revision=14301
* Update system imports for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-2/+5
| | | | svn path=/main/trunk/; revision=14294
* Update syntax of 'except' statements for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-3/+3
| | | | | | (2to3-3.1 -f except -nw ${FILES}) svn path=/main/trunk/; revision=14289
* remove FIXME, since zmedico fixed itFabian Groffen2009-08-241-5/+0
| | | | svn path=/main/trunk/; revision=14140
* Bug #282269, comment #2 - Avoid potential UnicodeEncodeError when writingZac Medico2009-08-221-0/+3
| | | | | | to sys.stderr inside xtermTitle(). svn path=/main/trunk/; revision=14126
* Use _encodings where appropriate and add _encodings['stdio'] for stdoutZac Medico2009-08-211-5/+4
| | | | | | encoding. svn path=/main/trunk/; revision=14111
* Use _content_encoding and _fs_encoding where appropriate.Zac Medico2009-08-181-5/+8
| | | | svn path=/main/trunk/; revision=14084
* Implement lazy loading of color.map when either the codes or _stylesZac Medico2009-08-181-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 Arahesis2009-08-151-11/+9
| | | | svn path=/main/trunk/; revision=14067
* Fix EOutput to safely write unicode to stderr/stdout. Thanks to Arfrever forZac Medico2009-08-091-14/+17
| | | | | | reporting. svn path=/main/trunk/; revision=13964
* Always pass encodings='utf_8' to codecs.open(), since otherwise it canZac Medico2009-07-201-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 thatZac Medico2009-07-121-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 Medico2009-06-171-70/+70
| | | | svn path=/main/trunk/; revision=13648
* Rename codes to _styles.Zac Medico2009-06-171-30/+30
| | | | svn path=/main/trunk/; revision=13647
* Rename map_code_to_color_code() to style_to_ansi_code().Zac Medico2009-06-171-5/+12
| | | | svn path=/main/trunk/; revision=13646
* Add epydoc docstrings fro codes and color_codes variables.Zac Medico2009-06-171-0/+3
| | | | svn path=/main/trunk/; revision=13645
* Use map_code_to_color_code() where appropriate inside ConsoleStyleFile.write().Zac Medico2009-06-171-1/+1
| | | | svn path=/main/trunk/; revision=13644
* Bug #274279 - Add color.map support for mapping a color to a different colorZac Medico2009-06-161-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 Medico2009-04-291-13/+17
| | | | svn path=/main/trunk/; revision=13410
* Use lazyimport to avoid importing the checksum, locks, and util modulesZac Medico2009-02-221-2/+7
| | | | | | when portage is initially imported. svn path=/main/trunk/; revision=12680