summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/emergelog.py
Commit message (Collapse)AuthorAgeFilesLines
* Use unicode_literals more.Zac Medico2013-01-181-8/+4
| | | | | This helps to ensure consistent results, regardless of whether we're using Python 2 or Python 3.
* emergelog: pass path to lockfile, not file objectZac Medico2011-12-131-6/+3
|
* emergelog: use string format op for time.time()Zac Medico2011-07-121-4/+7
|
* emergelog: remove unneeded seek for append modeZac Medico2011-07-121-3/+0
|
* Migrate from codecs.open() to io.open().Zac Medico2011-07-101-3/+5
| | | | | | | | | | | | | | | | | 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.
* emergelog: tweak _disabled commentZac Medico2011-06-031-2/+2
|
* emergelog: only enable when called by emergeZac Medico2011-06-031-1/+4
| | | | | | We disable emergelog by default, since it's called from dblink.merge() and we don't want that to trigger log writes unless it's really called via emerge.
* Update timestamps in headers of modified files.Zac Medico2011-05-011-1/+1
|
* emergelog: only set permission on creationZac Medico2011-04-291-3/+5
| | | | This will fix bug #365319.
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Bug #303401 - Fix emerge.log disabling code that's been broken sinceZac Medico2010-02-041-0/+4
| | | | | | portage-2.1.7 when the _emerge module got split up. svn path=/main/trunk/; revision=15322
* Support print() function with Python 2 in more files.Arfrever Frehtes Taifersar Arahesis2009-09-201-0/+2
| | | | svn path=/main/trunk/; revision=14295
* Update syntax of numbers in some files which were missing in previous commit.Arfrever Frehtes Taifersar Arahesis2009-09-201-1/+1
| | | | svn path=/main/trunk/; revision=14293
* Update syntax of calls to print() for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-1/+1
| | | | | | (2to3-3.1 -f print -nw ${FILES}) svn path=/main/trunk/; revision=14290
* Update syntax of 'except' statements for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-1/+1
| | | | | | (2to3-3.1 -f except -nw ${FILES}) svn path=/main/trunk/; revision=14289
* Use _encodings where appropriate.Zac Medico2009-08-201-2/+6
| | | | svn path=/main/trunk/; revision=14106
* Update imports to import portage.os (with unicode wrappers), and useZac Medico2009-08-111-14/+7
| | | | | | _unicode_encode() and _unicode_decode() where appropriate. svn path=/main/trunk/; revision=13995
* Add unicode conversions in various logging code.Zac Medico2009-08-061-0/+7
| | | | svn path=/main/trunk/; revision=13931
* Open file in text mode (unicode) where appropriate.Zac Medico2009-08-051-1/+3
| | | | svn path=/main/trunk/; revision=13913
* 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 (part 4).Zac Medico2009-06-221-0/+41
Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch. svn path=/main/trunk/; revision=13669