File tree 2 files changed +4
-2
lines changed 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,9 @@ class _ConversionCache(object):
46
46
"""
47
47
48
48
def __init__ (self , directory = None , max_size = int (1e8 )):
49
+ # gets is the set of filenames queried from the cache
49
50
self .gets = set ()
51
+ # hits is the set of filenames found in the cache when queried
50
52
self .hits = set ()
51
53
if directory is not None :
52
54
self .cachedir = directory
Original file line number Diff line number Diff line change @@ -121,12 +121,12 @@ def comparable_formats():
121
121
return ['png' ] + list (converter )
122
122
123
123
124
- @cbook .deprecated ('2.1' , addendum = 'Use _ConversionCache instead' )
124
+ @cbook .deprecated ('2.1' )
125
125
def get_cache_dir ():
126
126
return ccache ._ConversionCache .get_cache_dir ()
127
127
128
128
129
- @cbook .deprecated ('2.1' , addendum = 'Use _ConversionCache instead' )
129
+ @cbook .deprecated ('2.1' )
130
130
def get_file_hash (path , block_size = 2 ** 20 ):
131
131
if path .endswith ('.pdf' ):
132
132
from matplotlib import checkdep_ghostscript
You can’t perform that action at this time.
0 commit comments