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 <[email protected]> --- 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 ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ PyX-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyx-devel
