8000 Improve documentation in response to review · matplotlib/matplotlib@a70081e · GitHub
[go: up one dir, main page]

Skip to content

Commit a70081e

Browse files
committed
Improve documentation in response to review
No need to point users to private classes
1 parent 3751f01 commit a70081e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

lib/matplotlib/testing/compare.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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')
125125
def 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')
130130
def get_file_hash(path, block_size=2 ** 20):
131131
if path.endswith('.pdf'):
132132
from matplotlib import checkdep_ghostscript

0 commit comments

Comments
 (0)
0