summaryrefslogtreecommitdiff
path: root/searx/engines/github.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-05-02 14:58:32 -0400
committerAdam Tauber <asciimoo@gmail.com>2015-05-02 14:58:32 -0400
commit93fd1e4c76b2eb3d219a8b146ae9e36b103ae5cf (patch)
treeaf2c5d2f48c4f11a79560f0f9f884209ad580617 /searx/engines/github.py
parent81850dd603631b7e4b0d3b22d85e9eb3ae5b1e58 (diff)
parent4689fe341ca7c7231d0409526b9ee0f2eadde445 (diff)
Merge pull request #308 from dalf/versions_upgrade
update versions.cfg to use the current up-to-date packages
Diffstat (limited to 'searx/engines/github.py')
-rw-r--r--searx/engines/github.py22
1 files changed, 12 insertions, 10 deletions
diff --git a/searx/engines/github.py b/searx/engines/github.py
index a68aed141..cc1fc470c 100644
--- a/searx/engines/github.py
+++ b/searx/engines/github.py
@@ -1,12 +1,14 @@
-## Github (It)
-#
-# @website https://github.com/
-# @provide-api yes (https://developer.github.com/v3/)
-#
-# @using-api yes
-# @results JSON
-# @stable yes (using api)
-# @parse url, title, content
+"""
+ Github (It)
+
+ @website https://github.com/
+ @provide-api yes (https://developer.github.com/v3/)
+
+ @using-api yes
+ @results JSON
+ @stable yes (using api)
+ @parse url, title, content
+"""
from urllib import urlencode
from json import loads
@@ -37,7 +39,7 @@ def response(resp):
search_res = loads(resp.text)
# check if items are recieved
- if not 'items' in search_res:
+ if 'items' not in search_res:
return []
# parse results