[Python-modules-commits] [matplotlib] 12/17: Add a newline separator in fc-list call

Sandro Tosi morph at moszumanska.debian.org
Sun Feb 12 23:42:10 UTC 2017


This is an automated email from the git hooks/post-receive script.

morph pushed a commit to branch master
in repository matplotlib.

commit cb2f046ef7cc2dc44026a658e5a590685e122b5b
Author: Jouni K. Seppänen <jks at iki.fi>
Date:   Sat Jan 21 21:50:21 2017 +0200

    Add a newline separator in fc-list call
    
    Fixes #7906.
---
 lib/matplotlib/font_manager.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/matplotlib/font_manager.py b/lib/matplotlib/font_manager.py
index 3084410..213faee 100644
--- a/lib/matplotlib/font_manager.py
+++ b/lib/matplotlib/font_manager.py
@@ -281,7 +281,7 @@ def _call_fc_list():
         'This may take a moment.'))
     timer.start()
     try:
-        out = subprocess.check_output([str('fc-list'), '--format=%{file}'])
+        out = subprocess.check_output([str('fc-list'), '--format=%{file}\\n'])
     except (OSError, subprocess.CalledProcessError):
         return []
     finally:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/matplotlib.git



More information about the Python-modules-commits mailing list