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

Skip to content

Commit dcfdfe3

Browse files
committed
Fix github url
This is a quick patch to fix #478, not a future-proof solution.
1 parent fcc8039 commit dcfdfe3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/cbook.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ def get_sample_data(fname, asfileobj=True):
645645
Check the cachedirectory ~/.matplotlib/sample_data for a sample_data
646646
file. If it does not exist, fetch it with urllib from the mpl git repo
647647
648-
https://github.com/matplotlib/sample_data/raw/master
648+
https://raw.github.com/matplotlib/sample_data/master
649649
650650
and store it in the cachedir.
651651
@@ -676,7 +676,7 @@ def get_sample_data(fname, asfileobj=True):
676676
if myserver is None:
677677
configdir = matplotlib.get_configdir()
678678
cachedir = os.path.join(configdir, 'sample_data')
679-
baseurl = 'https://github.com/matplotlib/sample_data/raw/master/'
679+
baseurl = 'https://raw.github.com/matplotlib/sample_data/master/'
680680
try:
681681
myserver = _get_data_server(cachedir, baseurl)
682682
get_sample_data.myserver = myserver

0 commit comments

Comments
 (0)