Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[MRG+2] MAINT: Refactor the converted-image cache#7764

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
jkseppan wants to merge19 commits intomatplotlib:masterfromjkseppan:test-caching
Closed
Changes from1 commit
Commits
Show all changes
19 commits
Select commitHold shift + click to select a range
1b24a16
Factor the converted-image cache out of compare.py
jkseppanJan 7, 2017
650ddf2
Import cbook again
jkseppanJan 21, 2017
3b5f636
Lock the cache directory
jkseppanJan 21, 2017
556fd82
Communicate node-specific cache reports to master if using xdist
jkseppanJan 22, 2017
9f5a06d
Delete the nose plugin
jkseppanJan 25, 2017
33f2528
Reinstate deleted functions
jkseppanJan 25, 2017
2136a26
Make conversion_cache private
jkseppanJan 25, 2017
6995a27
Make globals private
jkseppanJan 25, 2017
9ea66dd
Improve wording
jkseppanJan 25, 2017
3751f01
mkdirs throws OSError
jkseppanJan 25, 2017
a70081e
Improve documentation in response to review
jkseppanJan 30, 2017
85f54de
Use pytest facilities
jkseppanJan 30, 2017
0d51e03
Simplify gs and inkscape version checking logic
jkseppanJan 30, 2017
9de06c0
pep8 fixes
jkseppanJan 30, 2017
6007b37
There is no nose plugin any more
jkseppanFeb 18, 2017
e52cdd2
Import the pytest hooks in the other conftest.py files
jkseppanFeb 20, 2017
e5184bb
Omit unnecessary tmpdir deletions
jkseppanFeb 22, 2017
f47cbe4
Move pytest_addoption call to top-level conftest.py
jkseppanFeb 22, 2017
996f22b
pep8 fix
jkseppanFeb 22, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Simplify gs and inkscape version checking logic
  • Loading branch information
@jkseppan
jkseppan committedFeb 20, 2017
commit0d51e03b702959ca9235eb200e76c08b18f685dd
16 changes: 6 additions & 10 deletionslib/matplotlib/testing/_conversion_cache.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -61,16 +61,12 @@ def __init__(self, directory=None, max_size=int(1e8)):
self.max_size = max_size
self.cached_ext = '.png'
self.converter_version = {}
try:
self.converter_version['.pdf'] = \
checkdep_ghostscript()[1].encode('utf-8')
except:
pass
try:
self.converter_version['.svg'] = \
checkdep_inkscape().encode('utf-8')
except:
pass
_, gs_version = checkdep_ghostscript()
if gs_version is not None:
self.converter_version['.pdf'] = gs_version.encode('utf-8')
is_version = checkdep_inkscape()
if is_version is not None:
self.converter_version['.svg'] = is_version.encode('utf-8')
self.hash_cache = {}

def get(self, filename, newname):
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp