From 4edbfd8df22308e76914b29b31ec1f7ed2cafc24 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Sat, 4 Feb 2023 21:35:56 +0000 Subject: [PATCH] Backport PR #25151: Increase timeout to GitHub API --- examples/lines_bars_and_markers/timeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/lines_bars_and_markers/timeline.py b/examples/lines_bars_and_markers/timeline.py index 2b4f7d81d059..e13bab115a30 100644 --- a/examples/lines_bars_and_markers/timeline.py +++ b/examples/lines_bars_and_markers/timeline.py @@ -23,7 +23,7 @@ url = 'https://api.github.com/repos/matplotlib/matplotlib/releases' url += '?per_page=100' - data = json.loads(urllib.request.urlopen(url, timeout=.4).read().decode()) + data = json.loads(urllib.request.urlopen(url, timeout=1).read().decode()) dates = [] names = []