diff options
-rw-r--r-- | CHANGES | 6 | ||||
-rw-r--r-- | pygments/formatters/img.py | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -6,6 +6,12 @@ Issue numbers refer to the tracker at pull request numbers to the requests at <https://bitbucket.org/birkenfeld/pygments-main/pull-requests/merged>. +Version 2.1.2 +------------- +(in development) + +- Fixed Python 3 regression in image formatter (#1215) + Version 2.1.1 ------------- diff --git a/pygments/formatters/img.py b/pygments/formatters/img.py index c7b8e819..cc95ce24 100644 --- a/pygments/formatters/img.py +++ b/pygments/formatters/img.py @@ -83,7 +83,7 @@ class FontManager(object): if proc.returncode == 0: lines = stdout.splitlines() for line in lines: - if line.startswith('Fontconfig warning:'): + if line.startswith(b'Fontconfig warning:'): continue path = line.decode().strip().strip(':') if path: |