@@ -356,7 +356,7 @@ def __init__(self, cache_dir):
356356
357357 def in_cache_dir (self , fn ):
358358 return os .path .join (self .cache_dir , fn )
359-
359+
360360 def read_cache (self ):
361361 """
362362 Read the cache file from the cache directory.
@@ -386,7 +386,7 @@ def remove_stale_files(self):
386386 for path in os .listdir (self .cache_dir ):
387387 if path not in listed and path != 'cache.pck' :
388388 os .remove (os .path .join (self .cache_dir , path ))
389-
389+
390390 def write_cache (self ):
391391 """
392392 Write the cache data structure into the cache directory.
@@ -419,7 +419,7 @@ def cache_file(self, url, data, headers):
419419 # http_request for preprocessing requests
420420 # http_error_304 for handling 304 Not Modified responses
421421 # http_response for postprocessing requests
422-
422+
423423 def http_request (self , req ):
424424 """
425425 Make the request conditional if we have a cached file.
@@ -441,7 +441,7 @@ def http_error_304(self, req, fp, code, msg, hdrs):
441441 handle = urllib2 .addinfourl (file , hdrs , url )
442442 handle .code = 304
443443 return handle
444-
444+
445445 def http_response (self , req , response ):
446446 """
447447 Update the cache with the returned file.
@@ -473,7 +473,7 @@ def get_mpl_data(fname, asfileobj=True):
473473 To add a datafile to this directory, you need to check out
474474 mpl_data from matplotlib svn::
475475
476- svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/mpl_data
476+ svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/ mpl_data
477477
478478 and svn add the data file you want to support. This is primarily
479479 intended for use in mpl examples that need custom data
@@ -497,7 +497,7 @@ def get_mpl_data(fname, asfileobj=True):
497497 response .close ()
498498 p = get_mpl_data .processor
499499 return p .in_cache_dir (p .cache [url ][0 ])
500-
500+
501501def flatten (seq , scalarp = is_scalar_or_string ):
502502 """
503503 this generator flattens nested containers such as
0 commit comments