Blame SOURCES/Fix-for-Python-3.patch

cdbc42
From 49180b3f5bb2e823bfa927a4b46a4ff0ef3730f0 Mon Sep 17 00:00:00 2001
cdbc42
From: Michael Droettboom <mdboom@gmail.com>
cdbc42
Date: Mon, 12 Oct 2015 20:03:57 -0400
cdbc42
Subject: [PATCH 3/5] Fix for Python 3
cdbc42
cdbc42
Signed-off-by: John Kacur <jkacur@redhat.com>
cdbc42
---
cdbc42
 lib/matplotlib/font_manager.py | 2 +-
cdbc42
 1 file changed, 1 insertion(+), 1 deletion(-)
cdbc42
cdbc42
diff --git a/lib/matplotlib/font_manager.py b/lib/matplotlib/font_manager.py
cdbc42
index a57e211509bb..8ee5cdc3fe80 100644
cdbc42
--- a/lib/matplotlib/font_manager.py
cdbc42
+++ b/lib/matplotlib/font_manager.py
cdbc42
@@ -581,7 +581,7 @@ def createFontList(fontfiles, fontext='ttf'):
cdbc42
                 continue
cdbc42
             try:
cdbc42
                 prop = ttfFontProperty(font)
cdbc42
-            except KeyError, RuntimeError:
cdbc42
+            except (KeyError, RuntimeError):
cdbc42
                 continue
cdbc42
 
cdbc42
         fontlist.append(prop)
cdbc42
-- 
cdbc42
2.20.1
cdbc42