summaryrefslogtreecommitdiffstats
path: root/pym/portage/util/ExtractKernelVersion.py
Commit message (Collapse)AuthorAgeFilesLines
* Replace @returns with @return.Zac Medico2012-03-271-1/+1
|
* python3.2 fixes: ResourceWarning: unclosed fileZac Medico2011-08-251-0/+2
|
* Migrate from codecs.open() to io.open().Zac Medico2011-07-101-3/+3
| | | | | | | | | | | | | | | | | 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.
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Move ExtractKernelVersion portage.util.ExtractKernelVersion.Zac Medico2010-02-251-0/+77
svn path=/main/trunk/; revision=15453