From 390c1fb59252918f36b5ff6ee6df72cd23781ca4 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Fri, 27 Apr 2012 13:00:25 -0400 Subject: [PATCH] Use an RLock to avoid deadlock when building docs as reported by @juliantaylor in #852. --- lib/matplotlib/backends/backend_agg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/backends/backend_agg.py b/lib/matplotlib/backends/backend_agg.py index fea9cb80c9bc..84a0e7d4b147 100644 --- a/lib/matplotlib/backends/backend_agg.py +++ b/lib/matplotlib/backends/backend_agg.py @@ -58,7 +58,7 @@ class RendererAgg(RendererBase): # draw at at time and so the font cache is used by only one # renderer at a time - lock = threading.Lock() + lock = threading.RLock() _fontd = maxdict(50) def __init__(self, width, height, dpi): if __debug__: verbose.report('RendererAgg.__init__', 'debug-annoying')