| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This helps to ensure consistent results, regardless of whether we're
using Python 2 or Python 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.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
This will fix bug #365319.
|
| |
|
|
|
|
|
|
| |
portage-2.1.7 when the _emerge module got split up.
svn path=/main/trunk/; revision=15322
|
|
|
|
| |
svn path=/main/trunk/; revision=14295
|
|
|
|
| |
svn path=/main/trunk/; revision=14293
|
|
|
|
|
|
| |
(2to3-3.1 -f print -nw ${FILES})
svn path=/main/trunk/; revision=14290
|
|
|
|
|
|
| |
(2to3-3.1 -f except -nw ${FILES})
svn path=/main/trunk/; revision=14289
|
|
|
|
| |
svn path=/main/trunk/; revision=14106
|
|
|
|
|
|
| |
_unicode_encode() and _unicode_decode() where appropriate.
svn path=/main/trunk/; revision=13995
|
|
|
|
| |
svn path=/main/trunk/; revision=13931
|
|
|
|
| |
svn path=/main/trunk/; revision=13913
|
|
|
|
| |
svn path=/main/trunk/; revision=13690
|
|
Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch.
svn path=/main/trunk/; revision=13669
|