[github] Use default HTTP request timeout
This commit is contained in:
parent
707131023a
commit
274836e39a
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user