From 274836e39aa5faafe0708a659d6482065f5a2505 Mon Sep 17 00:00:00 2001 From: nemunaire Date: Fri, 27 Nov 2015 19:07:54 +0100 Subject: [PATCH] [github] Use default HTTP request timeout --- modules/github.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/github.py b/modules/github.py index 1a345cd..2f79e9f 100644 --- a/modules/github.py +++ b/modules/github.py @@ -21,16 +21,14 @@ def help_full(): def info_repos(repo): return web.getJSON("https://api.github.com/search/repositories?q=%s" % - quote(repo), timeout=10) + quote(repo)) def info_user(username): - user = web.getJSON("https://api.github.com/users/%s" % quote(username), - timeout=10) + user = web.getJSON("https://api.github.com/users/%s" % quote(username)) user["repos"] = web.getJSON("https://api.github.com/users/%s/" - "repos?sort=updated" % quote(username), - timeout=10) + "repos?sort=updated" % quote(username)) return user