Revision: 7369
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7369&view=rev
Author: jdh2358
Date: 2009-08-05 15:02:12 +0000 (Wed, 05 Aug 2009)
Log Message:
-----------
add support for nested dirs in sample_data
Modified Paths:
--------------
trunk/matplotlib/examples/misc/sample_data_test.py
trunk/matplotlib/lib/matplotlib/cbook.py
Modified: trunk/matplotlib/examples/misc/sample_data_test.py
===================================================================
--- trunk/matplotlib/examples/misc/sample_data_test.py 2009-08-05 14:54:01 UTC
(rev 7368)
+++ trunk/matplotlib/examples/misc/sample_data_test.py 2009-08-05 15:02:12 UTC
(rev 7369)
@@ -9,5 +9,5 @@
"""
import matplotlib.cbook as cbook
-fh = cbook.get_sample_data("testdata.csv")
+fh = cbook.get_sample_data('testdir/subdir/testsub.csv')
print fh.read()
Modified: trunk/matplotlib/lib/matplotlib/cbook.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/cbook.py 2009-08-05 14:54:01 UTC (rev
7368)
+++ trunk/matplotlib/lib/matplotlib/cbook.py 2009-08-05 15:02:12 UTC (rev
7369)
@@ -349,8 +349,9 @@
Urllib2 handler that takes care of caching files.
The file cache.pck holds the directory of files to be cached.
"""
- def __init__(self, cache_dir):
+ def __init__(self, cache_dir, baseurl):
self.cache_dir = cache_dir
+ self.baseurl = baseurl
self.read_cache()
self.remove_stale_files()
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins