summaryrefslogtreecommitdiff
path: root/cherrypy/lib/reprconf.py
Commit message (Collapse)AuthorAgeFilesLines
* Adjust reprconf to match Python 3.8 changesSviatoslav Sydorenko2018-09-301-0/+2
|
* Wipe out legacy unrepr builder targeting Python 2Sviatoslav Sydorenko2018-09-301-124/+5
|
* Remove reliance on sixJason R. Coombs2018-09-021-6/+6
|
* Simply importJason R. Coombs2018-08-171-4/+4
|
* Use six for configparser importJason R. Coombs2018-08-171-9/+3
|
* Remove meaningless unreachable codeJason R. Coombs2018-08-171-5/+0
|
* Consolidate as_dict behavior.Jason R. Coombs2018-08-171-19/+13
|
* Feed the hobgoblins (delint).Jason R. Coombs2017-10-271-1/+1
|
* Add missing import of text_or_bytes to lib.reprconfSviatoslav Sydorenko2017-07-121-0/+2
|\ | | | | (PR #1604 by @mar10)
| * Fix missing importMartin Wendt2017-06-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `text_or_bytes` is never defined, so a NameError is always raised. So it is alwys set to `str`. This causes a problem in functions like this, where a `unicode` is not recognized as string , ```py def update(self, config): """Update self from a dict, file or filename.""" if isinstance(config, text_or_bytes): # Filename config = Parser().dict_from_file(config) elif hasattr(config, 'read'): # Open file object config = Parser().dict_from_file(config) else: config = config.copy() self._apply(config) ```
* | Use six to import builtinsJason R. Coombs2017-07-091-7/+2
| |
* | Replace iteritems with six usage.Jason R. Coombs2017-07-081-2/+2
|/
* PEP8fy codebase: eliminated E261 flake8 errorSviatoslav Sydorenko2017-03-111-3/+3
|
* PEP8fy codebase: eliminated E203 flake8 errorSviatoslav Sydorenko2017-03-111-1/+1
|
* Convert all strings to conform single-quoted styleSviatoslav Sydorenko2016-09-081-15/+15
| | | | pre-commit run double-quote-string-fixer --all-files
* Get rid of F401 imported but unusedSviatoslav Sydorenko2016-09-081-5/+0
|
* Use the preferred name text_or_bytes to avoid conflation with 'basestring' ↵Jason R. Coombs2016-07-241-5/+5
| | | | which has no equivalent on Python 3.
* Backed out changeset b83128f0f642. jaraco.itertools requires Python 2.7.Jason R. Coombs2016-06-231-3/+3
|
* Use always_iterable to re-use a proven function for the pattern of accepting ↵Jason R. Coombs2016-06-061-3/+3
| | | | None, iterable of strings, or single string for a parameter.
* Add support for the direct keywords on the calls (e.g. foo=bar) on python3 ↵Joel Rivera2016-03-101-0/+4
| | | | for the config parser and also give them preference on top of the **kwargs.
* Reimplementation and bufixes on the buildCall for python3.5.Joel Rivera2016-03-021-24/+22
| | | | Add test case to account for the keywords arguments on the config file.
* Fix bug #1382 for Python 3.5 keyword args.Joel Rivera2016-03-021-1/+35
|\
| * improved workaround for passed **kwargsMichael Kefeder2016-01-281-1/+5
| | | | | | | | | | --HG-- branch : 1282-ast-call-signature
| * workaround for issue #1382, python 3.5 _ast.Call signature rudimentarily ↵Michael Kefeder2016-01-281-1/+29
|/ | | | | | | implemented --HG-- branch : 1282-ast-call-signature
* now handles functions with kwargsJames Stewart2014-03-201-5/+23
|
* Merge with cherrypy-3.2.x (3.2.5)Jason R. Coombs2014-02-231-0/+3
|\
| * Add support for NameConstant. Fixes #1294Jason R. Coombs2014-02-231-0/+3
| | | | | | | | | | --HG-- branch : cherrypy-3.2.x
| * Resave with excess whitespace removedJason R. Coombs2014-02-231-66/+66
| | | | | | | | | | --HG-- branch : cherrypy-3.2.x
* | Running: autopep8 -vvvvv -i `find . -name '*.py'`Gustavo Picon2014-01-121-2/+5
| | | | | | | | | | --HG-- branch : autopep8
* | Reverting r51f486d breaking a bunch of cp3 testsGustavo Picon2014-01-111-1/+2
| |
* | Use ast.literal_eval instead of ast.parse("__temp__ = " + s)Tim Chase2013-11-061-2/+1
| | | | | | | | | | | | | | No need for extra variables when the ast module makes this so easy. --HG-- branch : gumnos/use-astliteral_eval-instead-of-astparse_-1383757013292
* | Simplified modules(). It's safe and efficient to call __import__ every time, ↵Jason R. Coombs2011-11-171-8/+2
| | | | | | | | and much cleaner.
* | Re-saved without excess spacesJason R. Coombs2011-11-171-66/+66
|/
* changed patch according to Jason R. Coombs commentJędrzej Nowak2011-11-161-2/+2
|
* Fixed incorrect usage of __import__ (see more http://bugs.python.org/issue2090)Jędrzej Nowak2011-11-161-1/+1
|
* Added multiply operation to unreprshadowman1312011-08-111-0/+7
|
* Bye bye, py2/3.Robert Brewer2011-07-021-0/+478
|
* Bringing python3 back into trunk with its own py3 folder; what was in trunk ↵trunkRobert Brewer2011-02-251-351/+0
| | | | goes in the py2 folder, and we can use a single setup.py to install either, depending on the version of Python that runs setup.py install.
* Freeow. The magic cherrypy/_cpcompat.py module to take all our py3k fears away.Robert Brewer2011-02-241-1/+6
|
* Sphinx docs (rsts) for rest of cherrypy.lib.*chbrown2010-02-241-4/+5
|
* More syncs with python3.Robert Brewer2009-06-091-16/+21
|
* trunk: A bunch more alignments between trunk and python3 syntax.Robert Brewer2009-06-021-3/+3
|
* Fix for #911 (reprconf.Config's __init__ should accept an optional ↵Robert Brewer2009-04-151-2/+9
| | | | dictionary or file to parse, like update).
* Moved the basic config logic out of _cpconfig and into its own standalone ↵Robert Brewer2009-04-141-0/+333
module in cherrypy/lib/reprconf.py. This makes it reusable for non-CherryPy apps.