| 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.
|
| |
|
|
|
|
|
|
| |
AttributeError when a key/value is redefined.
svn path=/main/trunk/; revision=14435
|
|
|
|
|
|
| |
(2to3-3.1 -f except -nw ${FILES})
svn path=/main/trunk/; revision=14289
|
|
|
|
|
|
| |
usage of _encodings.
svn path=/main/trunk/; revision=14113
|
|
|
|
| |
svn path=/main/trunk/; revision=14072
|
|
|
|
|
|
| |
internal os.path.join calls to raise UnicodeDecodeError.
svn path=/main/trunk/; revision=13926
|
|
|
|
|
|
|
|
|
|
| |
return non-unicode strings (at least in some cases, observed with
python-2.6.2). Don't use unicode in portage.util.getconfig() for now,
since shlex doesn't seem to support it (spurious \0 characters). If we
use unicode for config variables, it breaks shlex.split() calls on those
variables due to the same issue (spurious \0 characters).
svn path=/main/trunk/; revision=13845
|
|
|
|
| |
svn path=/main/trunk/; revision=13836
|
|
|
|
| |
svn path=/main/trunk/; revision=13733
|
|
|
|
|
|
| |
call to check for existence and file type.
svn path=/main/trunk/; revision=13298
|
|
|
|
| |
svn path=/main/trunk/; revision=12744
|
|
|
|
|
|
| |
for keys and values.
svn path=/main/trunk/; revision=12742
|
|
|
|
| |
svn path=/main/trunk/; revision=12642
|
|
|
|
| |
svn path=/main/trunk/; revision=12631
|
|
|
|
|
|
|
|
| |
2to3 will run:
http://bugs.python.org/issue2876
svn path=/main/trunk/; revision=12629
|
|
|
|
| |
svn path=/main/trunk/; revision=7948
|
|
|
|
| |
svn path=/main/trunk/; revision=7766
|
|
|
|
| |
svn path=/main/trunk/; revision=7765
|
|
|
|
| |
svn path=/main/trunk/; revision=7764
|
|
|
|
|
|
| |
empty, add support for value validators in relevant Loaders
svn path=/main/trunk/; revision=7757
|
|
|
|
| |
svn path=/main/trunk/; revision=7755
|
|
|
|
| |
svn path=/main/trunk/; revision=7754
|
|
|
|
|
|
| |
import style in news.py. Add TextFileLoader and EnvLoader loaders
svn path=/main/trunk/; revision=7753
|
|
|
|
|
|
| |
parsing errors for KeyValuePairLoader. Add a GenericFileLoader class that uses more than 1 loader in a vain attempt to figure out what kind of file it is. Fix inheritance by renaming UserConfigKlass
svn path=/main/trunk/; revision=7368
|
|
|
|
|
|
| |
to subclasses via a lineParser func, no idea how this will work performance wise. Fix errors in parser (blank lines are not errors ;))
svn path=/main/trunk/; revision=7365
|
|
|
|
| |
svn path=/main/trunk/; revision=7364
|
|
|
|
| |
svn path=/main/trunk/; revision=6914
|
|
|
|
| |
svn path=/main/trunk/; revision=6506
|
|
|
|
| |
svn path=/main/trunk/; revision=6498
|
|
|
|
| |
svn path=/main/trunk/; revision=6484
|
|
|
|
|
|
| |
team enumerate
svn path=/main/trunk/; revision=6330
|
|
|
|
| |
svn path=/main/trunk/; revision=6329
|
|
|
|
|
|
| |
that UserDict has most of the dict methods exposed, so drop them. Also add a LoaderError Exception. Still to do? add a validation callable into the loader to validate data.
svn path=/main/trunk/; revision=6328
|
|
|
|
| |
svn path=/main/trunk/; revision=6318
|
|
|
|
| |
svn path=/main/trunk/; revision=6317
|
|
|
|
| |
svn path=/main/trunk/; revision=6290
|
|
|
|
| |
svn path=/main/trunk/; revision=6288
|
|
|
|
|
|
| |
grabbing out into it's own function
svn path=/main/trunk/; revision=6281
|
|
|
|
|
|
| |
functionality down
svn path=/main/trunk/; revision=6280
|
|
|
|
| |
svn path=/main/trunk/; revision=6222
|
|
|
|
|
|
| |
sure the tempfile gets destroyed even if something weird happens
svn path=/main/trunk/; revision=6193
|
|
|
|
|
|
| |
explicitly...I think assuming a default arg is bad here. Also add PackageUse and PackageUseFile, change up the comments a bit. I've started to notice code re-use here; these are basically the same code. I think I will write up the rest of the package* classes and then perform code merges to save LOC and memory and whatnot
svn path=/main/trunk/; revision=6192
|
|
removing the file-based stuff from it (config_path) and encapsulating that into classes. This is the first one, a simple PackageKeywords class that does file-based stuff, no recursion yet but soon. Trying to do TDD here as well,so tests first then code.
svn path=/main/trunk/; revision=6190
|