|
From: Michael J G. <mic...@us...> - 2011-12-22 13:26:27
|
r3235 moved plot styles to graph.style. As a result, plotitem raises
AttributeError: 'module' object has no attribute 'getdefaultprovider'
because style.getdefaultprovider() does not find getdefaultprovider when
called in the module style (graph.style).
Fix this by referencing getdefaultprovider() directly (without the
module) in that module.
Signed-off-by: Michael J Gruber <mic...@us...>
---
pyx/graph/style.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/pyx/graph/style.py b/pyx/graph/style.py
index 4afc047..9471b2f 100644
--- a/pyx/graph/style.py
+++ b/pyx/graph/style.py
@@ -56,7 +56,7 @@ class plotitem:
for s in styles:
for n in s.needsdata:
if n not in provided:
- defaultprovider = style.getdefaultprovider(n)
+ defaultprovider = getdefaultprovider(n)
addstyles.append(defaultprovider)
provided.extend(defaultprovider.providesdata)
provided.extend(s.providesdata)
--
1.7.8.1.461.g7edd2
|