Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix typos | Kian-Meng Ang | 2022-02-06 | 2 | -7/+7 |
| | |||||
* | Correct typos in validate.py | Felix Yan | 2020-10-15 | 1 | -2/+2 |
| | |||||
* | Fix tests (#183) | Aliaksei Urbanski | 2019-06-11 | 1 | -3/+3 |
| | | | | | | The main goal of this commit is to fix the test_encoding_from_filelike test for Python 3.6+. As well, it fixes a couple of warnings. | ||||
* | Use tuple for startswith when parsing comments | Martin Packman | 2018-12-02 | 1 | -6/+7 |
| | | | | Saves a generator comprehension and any() call. | ||||
* | Delete the _a_to_u() helper method | Martin Packman | 2018-12-02 | 1 | -15/+7 |
| | | | | | | | Well meaning attempt at encoding correctness, but does literal nothing. On Python 3, ascii values are already decoded, on Python 2 ascii will get safely coerced to unicode. | ||||
* | Remove fallback for bool() not existing | Martin Packman | 2018-10-13 | 1 | -11/+0 |
| | | | | | Project only supports Pythons new enough to have the bool() builtin these days. | ||||
* | Simplify automated py3 changes for dict iteration | Martin Packman | 2018-10-13 | 1 | -7/+7 |
| | | | | | | No functionality change, just simplifies some expressions from automated Python 3 compatibility changes, where creating extra lists and similar is not actually needed. | ||||
* | Allow other path-like objects as configspec | Hugo Osvaldo Barrera | 2018-10-13 | 1 | -2/+6 |
| | |||||
* | Fix DeprecationWarning in Python 3.7 | Hugo | 2018-10-13 | 1 | -5/+11 |
| | |||||
* | Upgrade Python syntax with pyupgrade https://github.com/asottile/pyupgrade | Hugo | 2018-10-13 | 4 | -22/+22 |
| | |||||
* | quoting: make helper an actual function, and use repr in exceptions | jhermann | 2017-02-28 | 2 | -16/+12 |
| | |||||
* | Roundtrip configs with triple quotes and newlines | Martin Packman | 2017-02-28 | 2 | -3/+21 |
| | | | | | | | | | | | Reported long ago as bzr bug lp:710410 but the fix never made it to the 5.x configobj series. It is possible to create a config which configobj cannot read back, due to reversed logic in triple quote handling. Adapted the bzr unit test by bialix and fixed the behaviour. | ||||
* | Move some dottedQuadToNum doctests to pytest | Martin Packman | 2017-02-28 | 2 | -9/+23 |
| | | | | | | | | | | Currently the dottedQuadToNum doctest can fail on Python 2 depending on sys.maxint of the platform. Really doctests are not suitable for full coverage, so the boundary case and spacing behaviour checking is better in the pytest framework with doctests reserved for showing what the fuction actually does. | ||||
* | more compact test | jhermann | 2017-02-28 | 1 | -21/+9 |
| | |||||
* | Always return unicode when encoding is given (closes #18) | Martin Packman | 2017-02-28 | 2 | -2/+26 |
| | | | | | | | | | | As reported in github issue #18 when a file-like object is given and the encoding param is passed configobj fails to decode the data on Python 2. This is a regression from the 4.7 releases. Fix is simply to check first for binary types in _decode() helper as six.string_types includes the bytes str type on Python 2. | ||||
* | fix rewriting of CfgObjs with alternate comment markers | jhermann | 2016-08-29 | 1 | -8/+8 |
| | |||||
* | test for rewriting with alternate comment markers | jhermann | 2016-08-29 | 1 | -0/+9 |
| | |||||
* | added 'decoupled' kwparam to merge() (closes #115) | jhermann | 2016-07-27 | 2 | -2/+22 |
| | |||||
* | removed dead code (closes #61) | jhermann | 2016-07-27 | 1 | -59/+0 |
| | |||||
* | fixed doctests (ref #73) | jhermann | 2016-07-27 | 1 | -6/+8 |
| | |||||
* | more detailed multi-error reports (closes #73) | jhermann | 2016-07-27 | 2 | -4/+41 |
| | |||||
* | do not quote git-style section titles (closes #74) | jhermann | 2016-07-27 | 2 | -3/+12 |
| | |||||
* | tests: non-empty string checks | jhermann | 2016-07-27 | 1 | -2/+18 |
| | |||||
* | preserve spacing before comments and at line ends (closes #108) | jhermann | 2016-07-27 | 3 | -18/+28 |
| | |||||
* | tests: use mark.parametrize instead of for loop | jhermann | 2016-07-27 | 1 | -8/+9 |
| | |||||
* | tests for force_list and mixed_list | jhermann | 2016-07-27 | 1 | -0/+32 |
| | |||||
* | mixed_list: be liberal in what you accept… (closes #110) | jhermann | 2016-07-27 | 1 | -0/+7 |
| | |||||
* | exit status depends on doctest result again | jhermann | 2016-07-26 | 2 | -1/+2 |
| | |||||
* | ability to set alternative line comment markers (more INI compatibility, ↵ | jhermann | 2016-07-26 | 2 | -1/+23 |
| | | | | closes #79) | ||||
* | fix 'validate' imports for new package structure | jhermann | 2016-07-26 | 5 | -5/+5 |
| | |||||
* | make doctests run in py2.6 | jhermann | 2016-07-26 | 2 | -3/+5 |
| | |||||
* | made 'invoke test doctest check' work, and fixed existing test/lint failures | jhermann | 2016-07-26 | 8 | -0/+2574 |
| | |||||
* | use readthedocs.io | jhermann | 2016-06-03 | 1 | -1/+1 |
| | |||||
* | pylint: e → cause (bad name) | jhermann | 2016-02-26 | 2 | -18/+16 |
| | |||||
* | pylint: bogus unbalanced-tuple-unpacking | jhermann | 2016-02-26 | 1 | -4/+7 |
| | |||||
* | fixed invalid single-arg exception construction | jhermann | 2016-02-26 | 1 | -2/+10 |
| | |||||
* | suppress undefined-variable 'm' for now | jhermann | 2016-02-26 | 1 | -2/+3 |
| | |||||
* | some initial pylint fixes | jhermann | 2016-02-26 | 3 | -7/+14 |
| | |||||
* | fixed docstring markup | jhermann | 2016-02-18 | 1 | -0/+1 |
| | |||||
* | Move modules towards a 'configobj' package | jhermann | 2015-04-11 | 3 | -0/+3956 |
* handles #72 * handles #31 * handles the core of #32 * using ImportWarning as appropriate for an import change * tox passing for py27, i.e. structurally sound * the shim should probably released one final time as 'validate' to PyPI |