<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/gzip.py, branch 3.10</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/gzip.py?h=3.10</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/gzip.py?h=3.10'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2021-10-19T03:15:48Z</updated>
<entry>
<title>bpo-45475: Revert `__iter__` optimization for GzipFile, BZ2File, and LZMAFile. (GH-29016)</title>
<updated>2021-10-19T03:15:48Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-10-19T03:15:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=97ce855ca8ce437070424b43f5b41158685ac140'/>
<id>urn:sha1:97ce855ca8ce437070424b43f5b41158685ac140</id>
<content type='text'>
This reverts commit d2a8e69c2c605fbaa3656a5f99aa8d295f74c80e.
(cherry picked from commit 0a4c82ddd34a3578684b45b76f49cd289a08740b)

Co-authored-by: Inada Naoki &lt;songofacandy@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-44439: BZ2File.write() / LZMAFile.write() handle buffer protocol correctly (GH-26764) (GH-26845)</title>
<updated>2021-06-22T13:59:53Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-06-22T13:59:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=01858fbe31e8e0185edfbd3f10172f7c61391c9d'/>
<id>urn:sha1:01858fbe31e8e0185edfbd3f10172f7c61391c9d</id>
<content type='text'>
No longer use len() to get the length of the input data. For some buffer protocol objects,
the length obtained by using len() is wrong.
(cherry picked from commit bc6c12c72a9536acc96e7b9355fd69d1083a43c1)

Co-authored-by: Ma Lin &lt;animalize@users.noreply.github.com&gt;
</content>
</entry>
<entry>
<title>[3.10] Fix typo in comment (GH-26162) (GH-26164)</title>
<updated>2021-05-16T18:08:57Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-05-16T18:08:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=68b79f75c535724eb526ed68ad7a73c8cb7956b1'/>
<id>urn:sha1:68b79f75c535724eb526ed68ad7a73c8cb7956b1</id>
<content type='text'>
(cherry picked from commit de367378f67d7e90e4015100b19277685a3c9bb3)


Co-authored-by: Ashwin Ramaswami &lt;aramaswamis@gmail.com&gt;

Automerge-Triggered-By: GH:iritkatriel</content>
</entry>
<entry>
<title>bpo-43787: Add __iter__ to GzipFile, BZ2File, and LZMAFile (GH-25353)</title>
<updated>2021-04-13T04:51:49Z</updated>
<author>
<name>Inada Naoki</name>
<email>songofacandy@gmail.com</email>
</author>
<published>2021-04-13T04:51:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d2a8e69c2c605fbaa3656a5f99aa8d295f74c80e'/>
<id>urn:sha1:d2a8e69c2c605fbaa3656a5f99aa8d295f74c80e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-43510: Implement PEP 597 opt-in EncodingWarning. (GH-19481)</title>
<updated>2021-03-29T03:28:14Z</updated>
<author>
<name>Inada Naoki</name>
<email>songofacandy@gmail.com</email>
</author>
<published>2021-03-29T03:28:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4827483f47906fecee6b5d9097df2a69a293a85c'/>
<id>urn:sha1:4827483f47906fecee6b5d9097df2a69a293a85c</id>
<content type='text'>
See [PEP 597](https://www.python.org/dev/peps/pep-0597/).

* Add `-X warn_default_encoding` and `PYTHONWARNDEFAULTENCODING`.
* Add EncodingWarning
* Add io.text_encoding()
* open(), TextIOWrapper() emits EncodingWarning when encoding is omitted and warn_default_encoding is enabled.
* _pyio.TextIOWrapper() uses UTF-8 as fallback default encoding used when failed to import locale module. (used during building Python)
* bz2, configparser, gzip, lzma, pathlib, tempfile modules use io.text_encoding().
* What's new entry</content>
</entry>
<entry>
<title>bpo-43317: Use io.DEFAULT_BUFFER_SIZE instead of 1024 in gzip CLI (#24645)</title>
<updated>2021-02-26T12:17:51Z</updated>
<author>
<name>Ruben Vorderman</name>
<email>r.h.p.vorderman@lumc.nl</email>
</author>
<published>2021-02-26T12:17:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7956ef884965ac6f9f7f2a27b835ea80e471c886'/>
<id>urn:sha1:7956ef884965ac6f9f7f2a27b835ea80e471c886</id>
<content type='text'>
This improves the performance slightly.</content>
</entry>
<entry>
<title>bpo-43316: gzip: Fix sys.exit() usage. (GH-24652)</title>
<updated>2021-02-26T02:09:06Z</updated>
<author>
<name>Inada Naoki</name>
<email>songofacandy@gmail.com</email>
</author>
<published>2021-02-26T02:09:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9525a18b5bb317d9fb206c992ab62aa41559b0c8'/>
<id>urn:sha1:9525a18b5bb317d9fb206c992ab62aa41559b0c8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-43316:  gzip: CLI uses non-zero return code on error. (GH-24647)</title>
<updated>2021-02-25T11:30:24Z</updated>
<author>
<name>Ruben Vorderman</name>
<email>r.h.p.vorderman@lumc.nl</email>
</author>
<published>2021-02-25T11:30:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cc3df6368d4f3f6c9c9b716876c7e7b79c7abf3f'/>
<id>urn:sha1:cc3df6368d4f3f6c9c9b716876c7e7b79c7abf3f</id>
<content type='text'>
Exit code is now 1 instead of 0. A message is printed to stderr instead of stdout. This is
the proper behaviour for a tool that can be used in scripts.</content>
</entry>
<entry>
<title>bpo-39389: gzip: fix compression level metadata (GH-18077)</title>
<updated>2020-01-21T11:25:24Z</updated>
<author>
<name>William Chargin</name>
<email>wchargin@gmail.com</email>
</author>
<published>2020-01-21T11:25:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=eab3b3f1c60afecfb4db3c3619109684cb04bd60'/>
<id>urn:sha1:eab3b3f1c60afecfb4db3c3619109684cb04bd60</id>
<content type='text'>
As described in RFC 1952, section 2.3.1, the XFL (eXtra FLags) byte of a
gzip member header should indicate whether the DEFLATE algorithm was
tuned for speed or compression ratio. Prior to this patch, archives
emitted by the `gzip` module always indicated maximum compression.</content>
</entry>
<entry>
<title>bpo-28286: Deprecate opening GzipFile for writing implicitly. (GH-16417)</title>
<updated>2019-11-16T16:56:57Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2019-11-16T16:56:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a0652328a26757a90d63697b5c01f5427b1132b5'/>
<id>urn:sha1:a0652328a26757a90d63697b5c01f5427b1132b5</id>
<content type='text'>
Always specify the mode argument for writing.
</content>
</entry>
</feed>
