| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
| |
supported by stable portage.
svn path=/main/trunk/; revision=15306
|
|
|
|
|
|
|
|
| |
dict.(iterkeys|itervalues|iteritems)() for compatibility with Python 3.
(2to3-3.1 -f dict -nw ${FILES})
svn path=/main/trunk/; revision=14327
|
|
|
|
|
|
| |
(2to3-3.1 -f numliterals -nw ${FILES})
svn path=/main/trunk/; revision=14292
|
|
|
|
|
|
| |
usage of _encodings.
svn path=/main/trunk/; revision=14113
|
|
|
|
| |
svn path=/main/trunk/; revision=14086
|
|
|
|
|
|
| |
<antarus@gentoo.org> for this patch.
svn path=/main/trunk/; revision=14081
|
|
|
|
| |
svn path=/main/trunk/; revision=14080
|
|
|
|
| |
svn path=/main/trunk/; revision=14067
|
|
|
|
|
|
| |
names.
svn path=/main/trunk/; revision=13975
|
|
|
|
| |
svn path=/main/trunk/; revision=12766
|
|
|
|
|
|
|
| |
NewsManager.getUnreadItems(). If there's no permission to lock the unread
file, skip the lock and try to read the file anyway.
svn path=/main/trunk/; revision=12521
|
|
|
|
|
|
|
| |
PermissionDenied errors are encountered when attempting to read the
skip or unread files.
svn path=/main/trunk/; revision=11956
|
|
|
|
|
|
| |
not allowed to chown files to root uid.
svn path=/main/trunk/; revision=11873
|
|
|
|
| |
svn path=/main/trunk/; revision=11872
|
|
|
|
| |
svn path=/main/trunk/; revision=11871
|
|
|
|
| |
svn path=/main/trunk/; revision=11870
|
|
|
|
|
|
| |
fails.
svn path=/main/trunk/; revision=11869
|
|
|
|
|
|
| |
be created.
svn path=/main/trunk/; revision=11868
|
|
|
|
| |
svn path=/main/trunk/; revision=11867
|
|
|
|
|
|
|
| |
use them to check validity inside NewsManager.updateItems().
* Make DisplayInstalledRestriction.isValid() check validity of the atom.
svn path=/main/trunk/; revision=11866
|
|
|
|
|
|
| |
contents when writing the file.
svn path=/main/trunk/; revision=11864
|
|
|
|
|
|
| |
inside NewsManager.updateItems() before the NewsItem constructor is called.
svn path=/main/trunk/; revision=11863
|
|
|
|
|
|
| |
NewsManager.updateItems().
svn path=/main/trunk/; revision=11862
|
|
|
|
|
|
| |
reading the unread file.
svn path=/main/trunk/; revision=11510
|
|
|
|
| |
svn path=/main/trunk/; revision=11509
|
|
|
|
| |
svn path=/main/trunk/; revision=9459
|
|
|
|
| |
svn path=/main/trunk/; revision=9377
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
packages without having a portage tree:
* Make portdbapi.aux_get() return early by raising a KeyError
if it detects that there is no portage tree.
* Move the ARCH and USERLAND sanity check to the last moment
in doebuild() and only require these variables if an
existing environment (such as environment.bz2) is
unavailable.
* Make the NewsManager constructor cope with a broken
make.profile symlink.
svn path=/main/trunk/; revision=8973
|
|
|
|
|
|
| |
for an unprivileged user in readonly mode.
svn path=/main/trunk/; revision=8215
|
|
|
|
|
|
|
| |
from occuring when running emerge as an unprivileged
user in --pretend mode.
svn path=/main/trunk/; revision=8214
|
|
|
|
|
|
| |
happen when running with user priviledges in pretend mode
svn path=/main/trunk/; revision=8202
|
|
|
|
| |
svn path=/main/trunk/; revision=8148
|
|
|
|
|
|
| |
import style in news.py. Add TextFileLoader and EnvLoader loaders
svn path=/main/trunk/; revision=7753
|
|
|
|
|
|
| |
variables not being used, or global exceptions not being deleted. Also fix imports for style (1 per line)
svn path=/main/trunk/; revision=7354
|
|
|
|
|
|
| |
NewsManager.updateItems().
svn path=/main/trunk/; revision=6862
|
|
|
|
| |
svn path=/main/trunk/; revision=6841
|
|
|
|
| |
svn path=/main/trunk/; revision=6682
|
|
|
|
|
|
| |
file should be mapped into /var somewhere.
svn path=/main/trunk/; revision=6555
|
|
|
|
|
|
|
|
| |
- use octal numbers to specify file permissions
- use descriptive exceptions when (not) creating NewsItem objects
- code style cleanups
svn path=/main/trunk/; revision=6546
|
|
|
|
| |
svn path=/main/trunk/; revision=6155
|
|
|
|
|
|
|
| |
Rename portage.exec to portage.process to avoid syntax errors
svn path=/main/trunk/; revision=5780
|
|
svn path=/main/trunk/; revision=5778
|