<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/pygments-git.git/pygments/cmdline.py, branch 2382-fix</title>
<subtitle>github.com: pygments/pygments.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/'/>
<entry>
<title>cmdline: silently ignore ``BrokenPipeError``</title>
<updated>2022-07-30T08:54:28+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2022-07-30T07:19:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=53667339e5f32f6d6a3edce7797c815d34395b51'/>
<id>53667339e5f32f6d6a3edce7797c815d34395b51</id>
<content type='text'>
This has come up a few times, and I see no good reason to catch
and report this error.

Fixes #2193
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This has come up a few times, and I see no good reason to catch
and report this error.

Fixes #2193
</pre>
</div>
</content>
</entry>
<entry>
<title>Detect true-color terminal support for pygmentize (#2160)</title>
<updated>2022-06-13T05:21:12+00:00</updated>
<author>
<name>Micah Cochran</name>
<email>micahcochran@users.noreply.github.com</email>
</author>
<published>2022-06-13T05:21:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=126cf8c2547a2e75ee8b44154a5622e216a85ead'/>
<id>126cf8c2547a2e75ee8b44154a5622e216a85ead</id>
<content type='text'>
For the pygmentize command line, this pull request adds detection of true-color support on the terminal and makes that the default formatter. It looks up the COLORTERM environment variable having a value of truecolor or 24bit. If that is the case, it sets the default formatter to use the TerminalTrueColorFormatter.

The COLORTERM environment variable is a convention that has been adopted by some terminals for specifying true-color is supported.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For the pygmentize command line, this pull request adds detection of true-color support on the terminal and makes that the default formatter. It looks up the COLORTERM environment variable having a value of truecolor or 24bit. If that is the case, it sets the default formatter to use the TerminalTrueColorFormatter.

The COLORTERM environment variable is a convention that has been adopted by some terminals for specifying true-color is supported.
</pre>
</div>
</content>
</entry>
<entry>
<title>Happy new year.</title>
<updated>2022-01-25T06:36:28+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2022-01-25T06:36:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=ab4afd821aa41403f7a0b1e714112c40b2ad843b'/>
<id>ab4afd821aa41403f7a0b1e714112c40b2ad843b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow printing lists as JSON. (#1890)</title>
<updated>2021-09-11T20:28:06+00:00</updated>
<author>
<name>Matthäus G. Chajdas</name>
<email>Anteru@users.noreply.github.com</email>
</author>
<published>2021-09-11T20:28:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=0f6672ebcd7c1d6a96eee7324142d3a84e2761d4'/>
<id>0f6672ebcd7c1d6a96eee7324142d3a84e2761d4</id>
<content type='text'>
* Allow printing lists as JSON.

* Fix failing tests.

* Address review feedback.

* Don't pretty-print the JSON output.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Allow printing lists as JSON.

* Fix failing tests.

* Address review feedback.

* Don't pretty-print the JSON output.</pre>
</div>
</content>
</entry>
<entry>
<title>cmdline: port to argparse (#1693)</title>
<updated>2021-01-30T13:26:39+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2021-01-30T13:26:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=8ef301a0251a575a776fd4550ff155b41af2def9'/>
<id>8ef301a0251a575a776fd4550ff155b41af2def9</id>
<content type='text'>
* cmdline: port to argparse

* cmdline: adapt the argparse help formatter to actually take terminal width into account

* Update based on review feedback.

* Extract "is_only_option" method
* Check -L argument to be a "known good" argument

Co-authored-by: Matthäus G. Chajdas &lt;dev@anteru.net&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* cmdline: port to argparse

* cmdline: adapt the argparse help formatter to actually take terminal width into account

* Update based on review feedback.

* Extract "is_only_option" method
* Check -L argument to be a "known good" argument

Co-authored-by: Matthäus G. Chajdas &lt;dev@anteru.net&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Run pyupgrade across codebase to modernize syntax and patterns (#1622)</title>
<updated>2021-01-17T15:44:58+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2021-01-17T15:44:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=debda34e2d4f28d6d369cdafdcba4791702f63fc'/>
<id>debda34e2d4f28d6d369cdafdcba4791702f63fc</id>
<content type='text'>
pyupgrade is a tool to automatically upgrade syntax for newer versions
of the Python language.

The project has been Python 3 only since
35544e2fc6eed0ce4a27ec7285aac71ff0ddc473, allowing for several cleanups:

- Remove unnecessary "-*- coding: utf-8 -*-" cookie. Python 3 reads all
  source files as utf-8 by default.

- Replace IOError/EnvironmentError with OSError. Python 3 unified these
  exceptions. The old names are aliases only.

- Use the Python 3 shorter super() syntax.

- Remove "utf8" argument form encode/decode. In Python 3, this value is
  the default.

- Remove "r" from open() calls. In Python 3, this value is the default.

- Remove u prefix from Unicode strings. In Python 3, all strings are
  Unicode.

- Replace io.open() with builtin open(). In Python 3, these functions
  are functionally equivalent.

Co-authored-by: Matthäus G. Chajdas &lt;Anteru@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
pyupgrade is a tool to automatically upgrade syntax for newer versions
of the Python language.

The project has been Python 3 only since
35544e2fc6eed0ce4a27ec7285aac71ff0ddc473, allowing for several cleanups:

- Remove unnecessary "-*- coding: utf-8 -*-" cookie. Python 3 reads all
  source files as utf-8 by default.

- Replace IOError/EnvironmentError with OSError. Python 3 unified these
  exceptions. The old names are aliases only.

- Use the Python 3 shorter super() syntax.

- Remove "utf8" argument form encode/decode. In Python 3, this value is
  the default.

- Remove "r" from open() calls. In Python 3, this value is the default.

- Remove u prefix from Unicode strings. In Python 3, all strings are
  Unicode.

- Replace io.open() with builtin open(). In Python 3, these functions
  are functionally equivalent.

Co-authored-by: Matthäus G. Chajdas &lt;Anteru@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Added `pygmentize -C` option to guess a lexer from content</title>
<updated>2021-01-17T10:18:17+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2021-01-17T10:18:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=b4594169025485f7d64d5ffd71f42673e7a5972d'/>
<id>b4594169025485f7d64d5ffd71f42673e7a5972d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Bump copyright year.</title>
<updated>2021-01-03T17:03:23+00:00</updated>
<author>
<name>Matthäus G. Chajdas</name>
<email>dev@anteru.net</email>
</author>
<published>2021-01-03T17:03:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=a590ac5ea7c00a41e253834306bfa19e38349c0b'/>
<id>a590ac5ea7c00a41e253834306bfa19e38349c0b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix a Windows/PyPy3 test failure (#1533)</title>
<updated>2020-09-07T17:26:33+00:00</updated>
<author>
<name>Kurt McKee</name>
<email>contactme@kurtmckee.org</email>
</author>
<published>2020-09-07T17:26:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=945ed5ef268e2f3c7bbea42dfae1f8f844096f61'/>
<id>945ed5ef268e2f3c7bbea42dfae1f8f844096f61</id>
<content type='text'>
PyPy3 on Windows has a test failure in `test_cmdline:test_outfile()`
when trying to unlink the temporary output file. The root cause is that
`cmdline:inner_main()` does not explicitly close the file that it opens,
and PyPy3 isn't auto-closing the file when `inner_main()` returns.
This prevents the file from being unlinked, and the test case fails.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PyPy3 on Windows has a test failure in `test_cmdline:test_outfile()`
when trying to unlink the temporary output file. The root cause is that
`cmdline:inner_main()` does not explicitly close the file that it opens,
and PyPy3 isn't auto-closing the file when `inner_main()` returns.
This prevents the file from being unlinked, and the test case fails.</pre>
</div>
</content>
</entry>
<entry>
<title>Update copyright year (fixes #1514.)</title>
<updated>2020-08-22T14:08:07+00:00</updated>
<author>
<name>Matthäus G. Chajdas</name>
<email>dev@anteru.net</email>
</author>
<published>2020-08-22T14:08:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=5bd2a84bc1db0120828606c900a14276414fecdc'/>
<id>5bd2a84bc1db0120828606c900a14276414fecdc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
