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

Skip to content

Commit df15b57

Browse files
committed
Enable cache on Travis
This check was removed on master as a part of #5276 which was backported But the backport missed this line. Given that we warn about creating the cache this check is really annoying as it will show up over and over again
1 parent a5fe337 commit df15b57

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)