| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
usability for large config files.
The ConfigParser.get() method should have been O(1) but had
O(n) dict copies and updates on every call. This was
exacerbated by using OrderedDicts which do not copy or
update nearly as fast as regular dicts which are coded in C.
|
|
|
|
| |
values (http://bugs.python.org/issue7005)
|
|
|
|
| |
SafeConfigParser instances constructed with allow_no_value == True.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r83226 | georg.brandl | 2010-07-29 16:17:12 +0200 (Do, 29 Jul 2010) | 1 line
#1090076: explain the behavior of *vars* in get() better.
........
r83227 | georg.brandl | 2010-07-29 16:23:06 +0200 (Do, 29 Jul 2010) | 1 line
Use Py_CLEAR().
........
r83229 | georg.brandl | 2010-07-29 16:32:22 +0200 (Do, 29 Jul 2010) | 1 line
#9407: document configparser.Error.
........
r83230 | georg.brandl | 2010-07-29 16:36:11 +0200 (Do, 29 Jul 2010) | 1 line
Use correct directive and name.
........
r83232 | georg.brandl | 2010-07-29 16:49:08 +0200 (Do, 29 Jul 2010) | 1 line
#9388: remove ERA_YEAR which is never defined in the source code.
........
|
|
|
|
|
| |
Changes include using a list of lines instead of patching together using
string interpolation, and a multi-line value test cases.
|
|
|
|
| |
- add corresponding documentation
|
| |
|
| |
|
| |
|
|
|
|
| |
under -3.
|
| |
|
| |
|
|
|
|
|
| |
DEFAULT section any more, because it duplicated sections with
the rest of the machinery. Thanks Tim Lesher and Manuel Kaufmann.
|
| |
|
|
|
|
|
| |
are set for invalid interpolation sequences that would lead to errors
on reading back those values.
|
|
|
|
| |
for ordering, sorting, etc.
|
| |
|
|
|
|
| |
ConfigParser. Moved the new string-only restriction added in rev. 1.65 to the SafeConfigParser class, leaving existing ConfigParser & RawConfigParser behavior alone, and documented the conditions under which non-string values work.
|
|
|
|
| |
them with ``ConfigParser.optionxform`` when supplied, consistent with the handling of config file entries and runtime-set options.
|
|
|
|
|
|
| |
- read() method returns a list of files parsed successfully
- add tests, documentation
(closes SF patch #677651)
|
|
|
|
|
|
|
|
| |
- don't allow setting options to non-string values; raise TypeError
when the value is set, instead of raising an arbitrary exception
later (such as when string interpolation is performed)
- add tests, documentation
(closes SF bug #810843)
|
|
|
|
|
|
|
|
| |
- ensure that option names in interpolations are handled by
self.optionxform in the same way that other references to option
names
- add tests, documentation
(closes SF bug #857881, patch #865455)
|
| |
|
|
|
|
| |
From SF patch #852334.
|
|
|
|
|
| |
iterator where it probably shouldn't have.
Closes SF bug #818861.
|
|
|
|
| |
(From SF patch #810751)
|
|
|
|
| |
(Contributed by George Yoshida.)
|
| |
|
|
|
|
|
| |
now derive from InterpolationError, which is not raised directly (only
subclasses get raised). This matches what the docs already said.
|
|
|
|
|
|
|
|
|
| |
InterpolationError constructor, not the KeyError exception itself.
(Caught by the new InterpolationError test.)
SafeConfigParser._interpolate_some(): Pass the right number of
arguments to the InterpolationError constructor.
(Caught by pychecker.)
|
|
|
|
| |
- added docstring to exceptions
|
|
|
|
| |
XXX Not sure this is correct.
|
|
|
|
| |
Convert remaining uses of 1/0 to True/False
|
| |
|
| |
|
|
|
|
| |
Closes SF bug #511737.
|
|
|
|
|
|
|
|
| |
indirectly via %(__name__)s. Not sure why, but maintain the
documented behavior for the new items() method.
Be a little more efficient about how we compute the list of options in
the ConfigParser.items() method.
|
|
|
|
|
| |
derived class that adds the ugly string interpolation code. In the
process, changed all "__" methods and instance variables to "_".
|
|
|
|
| |
Closes SF bug #583248; backporting to r22-maint branch.
|
| |
|
|
|
|
|
|
|
|
| |
Closes SF bug #561822.
Integrate the "code cleanup and general bug fix patch" (SF bug #545096),
contributed by Gustavo Niemeyer. This is the portion of that patch that
does not add new functionality.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
x in string.whitespace => x.isspace()
type(x) in types.StringTypes => isinstance(x, basestring)
isinstance(x, types.StringTypes) => isinstance(x, basestring)
type(x) is types.StringType => isinstance(x, str)
type(x) == types.StringType => isinstance(x, str)
string.split(x, ...) => x.split(...)
string.join(x, y) => y.join(x)
string.zfill(x, ...) => x.zfill(...)
string.count(x, ...) => x.count(...)
hasattr(types, "UnicodeType") => try: unicode except NameError:
type(x) != types.TupleTuple => not isinstance(x, tuple)
isinstance(x, types.TupleType) => isinstance(x, tuple)
type(x) is types.IntType => isinstance(x, int)
Do not mention the string module in the rlcompleter docstring.
This partially applies SF patch http://www.python.org/sf/562373
(with basestring instead of string). (It excludes the changes to
unittest.py and does not change the os.stat stuff.)
|
| |
|
| |
|
|
|
|
| |
Reported by Neal Norwitz on python-dev.
|
| |
|
|
|
|
|
| |
were originally rfc822-like line continuations.
Modified version of a patch from Matthias Ralfs.
|