File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,9 @@ class _ConversionCache(object):
4646 """
4747
4848 def __init__ (self , directory = None , max_size = int (1e8 )):
49+ # gets is the set of filenames queried from the cache
4950 self .gets = set ()
51+ # hits is the set of filenames found in the cache when queried
5052 self .hits = set ()
5153 if directory is not None :
5254 self .cachedir = directory
Original file line number Diff line number Diff line change @@ -121,12 +121,12 @@ def comparable_formats():
121121 return ['png' ] + list (converter )
122122
123123
124- @cbook .deprecated ('2.1' , addendum = 'Use _ConversionCache instead' )
124+ @cbook .deprecated ('2.1' )
125125def get_cache_dir ():
126126 return ccache ._ConversionCache .get_cache_dir ()
127127
128128
129- @cbook .deprecated ('2.1' , addendum = 'Use _ConversionCache instead' )
129+ @cbook .deprecated ('2.1' )
130130def get_file_hash (path , block_size = 2 ** 20 ):
131131 if path .endswith ('.pdf' ):
132132 from matplotlib import checkdep_ghostscript
You can’t perform that action at this time.
0 commit comments