<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cherrypy-git.git/cherrypy/lib, branch main</title>
<subtitle>github.com: cherrypy/cherrypy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/'/>
<entry>
<title>🐛Replace use of deprecated ConfigParser.readfp</title>
<updated>2023-01-09T04:25:01+00:00</updated>
<author>
<name>Sviatoslav Sydorenko</name>
<email>wk@sydorenko.org.ua</email>
</author>
<published>2023-01-09T04:25:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=0a916360e7b3fe71183b825dd6899fc15c03d978'/>
<id>0a916360e7b3fe71183b825dd6899fc15c03d978</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "🔧 Stop using the `cgi` stdlib module"</title>
<updated>2023-01-09T02:34:06+00:00</updated>
<author>
<name>Sviatoslav Sydorenko</name>
<email>wk@sydorenko.org.ua</email>
</author>
<published>2023-01-09T02:34:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=7338b8364d4def72835d80c6315afbe5c96b20fd'/>
<id>7338b8364d4def72835d80c6315afbe5c96b20fd</id>
<content type='text'>
This reverts commit 6b7c2cdc91ca5ba1f6cf3e5d9e8e386266c64ce6.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 6b7c2cdc91ca5ba1f6cf3e5d9e8e386266c64ce6.
</pre>
</div>
</content>
</entry>
<entry>
<title>🔧 Stop using the `cgi` stdlib module</title>
<updated>2023-01-05T04:29:43+00:00</updated>
<author>
<name>Sviatoslav Sydorenko</name>
<email>wk@sydorenko.org.ua</email>
</author>
<published>2023-01-05T04:29:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=6b7c2cdc91ca5ba1f6cf3e5d9e8e386266c64ce6'/>
<id>6b7c2cdc91ca5ba1f6cf3e5d9e8e386266c64ce6</id>
<content type='text'>
This module is deprecated since Python 3.11.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This module is deprecated since Python 3.11.
</pre>
</div>
</content>
</entry>
<entry>
<title>🎨 Upgrade pydocstyle to the recent version</title>
<updated>2023-01-05T04:18:35+00:00</updated>
<author>
<name>Sviatoslav Sydorenko</name>
<email>wk@sydorenko.org.ua</email>
</author>
<published>2023-01-05T04:17:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=49401127ca9082b5bdf9ea20d71ddf107fa73cb2'/>
<id>49401127ca9082b5bdf9ea20d71ddf107fa73cb2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>🎨 Adjust line length in code across the repo</title>
<updated>2023-01-05T04:18:34+00:00</updated>
<author>
<name>Sviatoslav Sydorenko</name>
<email>wk@sydorenko.org.ua</email>
</author>
<published>2023-01-05T03:32:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=02ed51b88c5a6266de63afcbd1e899931f952e84'/>
<id>02ed51b88c5a6266de63afcbd1e899931f952e84</id>
<content type='text'>
This patch makes it shorter to fit the 79 char limit.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch makes it shorter to fit the 79 char limit.
</pre>
</div>
</content>
</entry>
<entry>
<title>Introduce SanitizedHost wrapper. Fixes #1974.</title>
<updated>2022-07-17T20:26:54+00:00</updated>
<author>
<name>Jason R. Coombs</name>
<email>jaraco@jaraco.com</email>
</author>
<published>2022-07-17T20:26:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=78331575dacb67eaabf3e645533f1d05b861f00d'/>
<id>78331575dacb67eaabf3e645533f1d05b861f00d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use context managers to close files properly and fix tests on PyPy</title>
<updated>2022-02-01T17:35:12+00:00</updated>
<author>
<name>Michał Górny</name>
<email>mgorny@gentoo.org</email>
</author>
<published>2022-01-31T21:25:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=7daf4855f58cd79e72196d3a5a0b0a860d782ee7'/>
<id>7daf4855f58cd79e72196d3a5a0b0a860d782ee7</id>
<content type='text'>
Use context managers (`with`) to ensure that all open files are closed
correctly.  This resolves resource leaks and test failures with PyPy3.7.

The code prior to this change used four approaches for closing files:

1. Using a context manager (`with` clause).

2. Using a try/finally clause.

3. Closing the file in the same scope (unreliable: file object can leak
   on exception).

4. Not closing open files at all.

The last point is a real problem for PyPy since it does not GC
unreachable objects as aggressively as CPython does.  While leaving
a function scope on CPython causes the file objects private to it to
be destroyed (and therefore closed), in PyPy they can stay dangling
for some time.  When combines with buffered writes, this means that
writes can still remain pending after returning from function.

Using a context manager is a simple, consistent way to ensure that
the file object is closed once it is no longer needed.  In turn, this
guarantees that all pending writes will be performed upon function
return and the code won't be hiting race conditions between writing
a file and reading it afterwards.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use context managers (`with`) to ensure that all open files are closed
correctly.  This resolves resource leaks and test failures with PyPy3.7.

The code prior to this change used four approaches for closing files:

1. Using a context manager (`with` clause).

2. Using a try/finally clause.

3. Closing the file in the same scope (unreliable: file object can leak
   on exception).

4. Not closing open files at all.

The last point is a real problem for PyPy since it does not GC
unreachable objects as aggressively as CPython does.  While leaving
a function scope on CPython causes the file objects private to it to
be destroyed (and therefore closed), in PyPy they can stay dangling
for some time.  When combines with buffered writes, this means that
writes can still remain pending after returning from function.

Using a context manager is a simple, consistent way to ensure that
the file object is closed once it is no longer needed.  In turn, this
guarantees that all pending writes will be performed upon function
return and the code won't be hiting race conditions between writing
a file and reading it afterwards.
</pre>
</div>
</content>
</entry>
<entry>
<title>Close streamed file in file_generator on destruct</title>
<updated>2021-01-17T02:02:24+00:00</updated>
<author>
<name>Duncan Bellamy</name>
<email>dunk@denkimushi.com</email>
</author>
<published>2021-01-17T02:02:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=59c0e19d7df8680e36afc96756dce72435121448'/>
<id>59c0e19d7df8680e36afc96756dce72435121448</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix compression level in meta header in gzip tool</title>
<updated>2020-11-15T01:58:16+00:00</updated>
<author>
<name>Sviatoslav Sydorenko</name>
<email>wk@sydorenko.org.ua</email>
</author>
<published>2020-11-15T00:21:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=b4eb20e5803ccf11d5a84044ada8ebc6dc411ab1'/>
<id>b4eb20e5803ccf11d5a84044ada8ebc6dc411ab1</id>
<content type='text'>
* https://bugs.python.org/issue39389

* https://github.com/python/cpython/pull/18077
* https://github.com/python/cpython/pull/18100
* https://github.com/python/cpython/pull/18101

Fixes #1849
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* https://bugs.python.org/issue39389

* https://github.com/python/cpython/pull/18077
* https://github.com/python/cpython/pull/18100
* https://github.com/python/cpython/pull/18101

Fixes #1849
</pre>
</div>
</content>
</entry>
<entry>
<title>Reflow the comment in _make_content_disposition</title>
<updated>2020-04-17T16:13:18+00:00</updated>
<author>
<name>Sviatoslav Sydorenko</name>
<email>wk@sydorenko.org.ua</email>
</author>
<published>2020-04-17T16:13:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=bc1dd5a5d9be7ad613a6b23ac83938936a4509a9'/>
<id>bc1dd5a5d9be7ad613a6b23ac83938936a4509a9</id>
<content type='text'>
This fixes the lines exceeding 79 chars limit
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes the lines exceeding 79 chars limit
</pre>
</div>
</content>
</entry>
</feed>
