<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/pygments-git.git/pygments/formatters/__init__.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>Revert "Remove filename pattern caches (#2153)" (#2328)</title>
<updated>2023-01-31T15:16:11+00:00</updated>
<author>
<name>Dirk Mueller</name>
<email>dmueller@suse.com</email>
</author>
<published>2023-01-31T15:16:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=c467d61ccf23d24cba47957e6e0dde790b94136f'/>
<id>c467d61ccf23d24cba47957e6e0dde790b94136f</id>
<content type='text'>
This introduced a performance regession. While it is true that
fnmatch already uses functools.lru_cache, that cache is limited to 256
on python 3.10 and older and we have over 1000 matching patterns, which
means the cache is evicted entirely on every iteration.

This reverts commit 951c894ab23537be90fbf3973d0345591e682371.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This introduced a performance regession. While it is true that
fnmatch already uses functools.lru_cache, that cache is limited to 256
on python 3.10 and older and we have over 1000 matching patterns, which
means the cache is evicted entirely on every iteration.

This reverts commit 951c894ab23537be90fbf3973d0345591e682371.</pre>
</div>
</content>
</entry>
<entry>
<title>all: style fixes</title>
<updated>2022-10-27T09:58:29+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2022-10-27T05:19:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=11dac32db5db1166b8d55dc85bc16d2085936c9a'/>
<id>11dac32db5db1166b8d55dc85bc16d2085936c9a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove filename pattern caches (#2153)</title>
<updated>2022-06-04T07:43:36+00:00</updated>
<author>
<name>Jean Abou-Samra</name>
<email>jean@abou-samra.fr</email>
</author>
<published>2022-06-04T07:43:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=951c894ab23537be90fbf3973d0345591e682371'/>
<id>951c894ab23537be90fbf3973d0345591e682371</id>
<content type='text'>
These are irrelevant because the fnmatch module implementation already
uses functools.lru_cache.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These are irrelevant because the fnmatch module implementation already
uses functools.lru_cache.</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>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>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>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>
<entry>
<title>Remove Python 2 compatibility (#1348)</title>
<updated>2020-02-29T14:45:08+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2020-02-29T14:45:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=35544e2fc6eed0ce4a27ec7285aac71ff0ddc473'/>
<id>35544e2fc6eed0ce4a27ec7285aac71ff0ddc473</id>
<content type='text'>
* Remove Python 2 compatibility

* remove 2/3 shims in pygments.util
* update setup.py metadata

* Remove unneeded object inheritance.

* Remove unneeded future imports.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Remove Python 2 compatibility

* remove 2/3 shims in pygments.util
* update setup.py metadata

* Remove unneeded object inheritance.

* Remove unneeded future imports.
</pre>
</div>
</content>
</entry>
<entry>
<title>use IOError reason in error message</title>
<updated>2019-11-29T05:12:48+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2019-11-29T05:12:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=689c25a627dcdc2e922cd0419f4c163fe90ccd42'/>
<id>689c25a627dcdc2e922cd0419f4c163fe90ccd42</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixup all headers and some more minor problems.</title>
<updated>2019-05-28T05:00:40+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2019-05-28T05:00:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=597020d4ce90505dad8b850eadafd20f06bf1dc9'/>
<id>597020d4ce90505dad8b850eadafd20f06bf1dc9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
