summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/EbuildMetadataPhase.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.
* SubProcess: fix status for _set_returncode callerZac Medico2011-06-091-2/+2
| | | | | | These callers don't intend to make WIFSIGNALED return True, so they need to shift their codes 8 bits to the left. This ensures that commit 88f5bf84e2fd23125910b2ecaffc035971445696 behaves as intended.
* fdopen: read from processes in unbuffered modev2.2.0_alpha19Zac Medico2011-01-211-2/+2
| | | | | It doesn't make sense to use buffers in cases like this, and is potentially error prone (as in bug #287648 / python issue 5380).
* Fix SubProcess instances to call _set_returncode() when appropriate,Zac Medico2010-08-151-2/+2
| | | | instead of setting self.returncode directly.
* Remove unuser return values from PollScheduler event handlers.Zac Medico2010-08-151-1/+0
|
* GLEP 55 removalDaniel Robbins2010-07-061-3/+0
|
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Use dict.(keys|values|items)() instead of ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-1/+1
| | | | | | | | dict.(iterkeys|itervalues|iteritems)() for compatibility with Python 3. (2to3-3.1 -f dict -nw ${FILES}) svn path=/main/trunk/; revision=14327
* Support both Python 2 and 3 in portage._unicode_encode() and ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-1/+2
| | | | | | | | portage._unicode_decode(). Update decoding in some files. svn path=/main/trunk/; revision=14321
* Use filter() and zip() instead of itertools.ifilter() and itertools.izip() ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-2/+1
| | | | | | | | for compatibility with Python 3. (2to3-3.1 -f itertools -f itertools_imports -nw ${FILES}) svn path=/main/trunk/; revision=14314
* Use _encodings where appropriate.Zac Medico2009-08-191-5/+10
| | | | svn path=/main/trunk/; revision=14100
* Update imports to import portage.os (with unicode wrappers), and useZac Medico2009-08-111-8/+3
| | | | | | _unicode_encode() and _unicode_decode() where appropriate. svn path=/main/trunk/; revision=13993
* Assume utf_8 encoding when reading raw ebuild metadata.Zac Medico2009-07-041-1/+3
| | | | svn path=/main/trunk/; revision=13785
* Add/update copyright headers.Zac Medico2009-06-251-0/+4
| | | | svn path=/main/trunk/; revision=13690
* Bug #275047 - Split _emerge/__init__.py into smaller pieces. Thanks toZac Medico2009-06-221-0/+132
Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch. svn path=/main/trunk/; revision=13663