summaryrefslogtreecommitdiff
path: root/cherrypy/lib/encoding.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove reliance on sixJason R. Coombs2018-09-021-5/+3
|
* Consolidate prepare_iter behaviorJason R. Coombs2018-08-191-13/+24
|
* Use bytes literals where appropriatev14.0.0Jason R. Coombs2018-02-041-7/+7
|
* PEP8fy codebase: eliminated E302 flake8 errorSviatoslav Sydorenko2017-03-111-0/+1
|
* fixed a bunch of documentation warningsRick van Hattem2017-02-071-3/+3
|
* Convert all strings to conform single-quoted styleSviatoslav Sydorenko2016-09-081-22/+22
| | | | pre-commit run double-quote-string-fixer --all-files
* Use the preferred name text_or_bytes to avoid conflation with 'basestring' ↵Jason R. Coombs2016-07-241-2/+2
| | | | which has no equivalent on Python 3.
* Remove StringIO and BytesIO from compatibility module and use io module ↵Jason R. Coombs2016-06-051-2/+3
| | | | directly.
* Replaced 'unicodestr' with 'six.text_type'Jason R. Coombs2016-06-051-4/+6
|
* Simply get set from builtinsJason R. Coombs2015-12-191-1/+1
|
* Fixed SyntaxError which somehow slipped under the radar...Allan Crooks2014-05-061-1/+1
|
* Explicitly close response iterators when finished with them; this should ↵Allan Crooks2014-05-041-5/+10
| | | | help us clean up memory sooner when the iterators aren't fully consumed. Fixes #1314.
* Fix for recent commits which were causing a number of tests to fail in Python 3.Allan Crooks2014-04-161-0/+21
|
* More PEP8 work.Gustavo Picon2014-01-121-7/+8
|
* Running: autopep8 -vvvvv -i `find . -name '*.py'`Gustavo Picon2014-01-121-9/+17
| | | | | --HG-- branch : autopep8
* Return sorted charsets in the encoding error message.Gustavo Picon2014-01-111-1/+2
| | | | Determinism fixes a broken test in python3
* no much point in computing the charset when it's not expected anywaySylvain Hellegouarch2013-09-281-7/+6
|
* Bugfix. The IndexError, KeyError, LookupError, UnicodeError exceptionsJoel Rivera2013-06-231-12/+10
| | | | | | | | | | | | | were not propagated from generators, the solution was to limit the scope of the try/except block, even if the try/catch block is inside a for loop because of the premise that the exceptions are not that heavy when the except block is not executed in the majority of the cases (which is the expected behavior at that particular part). Applying the suggested patch of @jimparis. Closes issue #1200.
* Removed trailing whitespace from the codebase.Gustavo Picon2012-04-031-39/+39
| | | | sed -i '' -e 's/ *$//' `find cherrypy -name '*.py'`
* Bye bye, py2/3.Robert Brewer2011-07-021-0/+388
|
* Bringing python3 back into trunk with its own py3 folder; what was in trunk ↵trunkRobert Brewer2011-02-251-388/+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.
* Minor speedup to response bodyRobert Brewer2011-02-241-2/+2
|
* Freeow. The magic cherrypy/_cpcompat.py module to take all our py3k fears away.Robert Brewer2011-02-241-36/+28
|
* Some backports (mostly whitespace, really) from the python3 branch.Robert Brewer2010-12-271-2/+2
|
* #984 the gzip tool now allows for simple pattern matching such as text/* or ↵Sylvain Hellegouarch2010-09-211-4/+34
| | | | application/*+xml
* Test and fix for #980 (tools.encode(text_only=False, add_charset=True) fails ↵Robert Brewer2010-04-241-10/+10
| | | | in ResponseEncoder.__call__ (patch included)).
* Sphinx docs in cherrypy.lib.*chbrown2010-02-241-6/+10
|
* Fix for #946 (Problem with encoded text in multipart/form-data). Reworked ↵Robert Brewer2009-08-101-0/+24
| | | | the structure for attempting various charsets when decoding request entities. New 'decode' Tool which is backward-compatible with the one in 3.1.
* Copied some tool debug code from python3Robert Brewer2009-08-021-9/+54
|
* New 'debug' arg to lib.gzip.Robert Brewer2009-06-241-8/+32
|
* All internals now use cherrypy.serving.request/response instead of ↵Robert Brewer2009-06-221-13/+16
| | | | request/response for a speed boost.
* Removed py3print.Robert Brewer2009-06-141-1/+4
|
* trunk: A bunch more alignments between trunk and python3 syntax.Robert Brewer2009-06-021-2/+1
|
* Some Python2.3 fixes.Robert Brewer2009-06-021-0/+4
|
* trunk - more changes to bring the two branches into a more similar state - ↵Lakin Wecker2009-06-011-2/+3
| | | | this time normalizing StringIO imports.
* Brought trunk up to par with the encoding changes from the python3 branch.Robert Brewer2009-06-011-162/+158
|
* Fixed #732Sylvain Hellegouarch2009-04-011-1/+1
|
* Moved set_vary_header to cherrypy.libjaraco2009-03-301-7/+1
|
* Now add the vary header in gzip regardless of whether gzip actually ↵jaraco2009-03-301-6/+7
| | | | compresses something
* Moved vary header code to its own functionjaraco2009-03-301-6/+9
|
* change gzip() compress_level default value from 9 to 5visteya2009-03-181-1/+1
|
* Buglet in gzip. See ↵Robert Brewer2009-02-121-1/+1
| | | | http://groups.google.com/group/cherrypy-users/msg/5ff61f51fa52685f.
* Fix for #832 (Failure in test_encoding). I'm reasonably sure this is what we ↵Robert Brewer2008-06-281-1/+1
| | | | want.
* Doc tweak.Robert Brewer2008-05-241-0/+11
|
* Forward port to trunk from 3.0.x [1704]. Responses were being gzipped twice ↵Robert Brewer2007-10-281-0/+17
| | | | when served from cache.
* Primarily to support text-based content types that do not start with "text/",zakj2007-10-221-3/+4
| | | | | added text_only and add_charset boolean arguments to lib.encoding.encode(), both defaulting to True.
* Fix for #732 (tools.decode and non str params).Robert Brewer2007-09-201-11/+9
|
* Fix for #730 (missing unicode params after tools.decode).Robert Brewer2007-09-181-1/+1
|
* Some tool buglets and docs.Robert Brewer2006-11-071-0/+2
|
* Trunk fix for #577 (GzipFilter doesn't force an update of the Content-Length ↵Robert Brewer2006-10-201-0/+15
| | | | header). All code which could change the length of response.body should delete the Content-Length header (if already set).