summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/resolver/output_helpers.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Fix merge list repo display breakage.Zac Medico2010-12-231-3/+5
| | | | | Broken since refactoring in commit 48c8cec7c079cb07a4f421a36cdc46a7fdbc7811.
* Refactor depgraph merge list display code.Brian Dolbec2010-12-221-0/+574