Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 875e539

Browse files
authored
Merge pull request #6857 from jenshnielsen/travis_cache
Enable cache on Travis
2 parents be37777 + df15b57 commit 875e539

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

lib/matplotlib/font_manager.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,13 +1398,12 @@ def findfont(prop, fontext='ttf'):
13981398
else:
13991399
_fmcache = None
14001400

1401-
if not 'TRAVIS' in os.environ:
1402-
cachedir = get_cachedir()
1403-
if cachedir is not None:
1404-
if six.PY3:
1405-
_fmcache = os.path.join(cachedir, 'fontList.py3k.cache')
1406-
else:
1407-
_fmcache = os.path.join(cachedir, 'fontList.cache')
1401+
cachedir = get_cachedir()
1402+
if cachedir is not None:
1403+
if six.PY3:
1404+
_fmcache = os.path.join(cachedir, 'fontList.py3k.cache')
1405+
else:
1406+
_fmcache = os.path.join(cachedir, 'fontList.cache')
14081407

14091408
fontManager = None
14101409

0 commit comments

Comments
 (0)