summaryrefslogtreecommitdiff
path: root/searx/engines/github.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2015-05-02 15:45:17 +0200
committerAlexandre Flament <alex@al-f.net>2015-05-02 15:45:17 +0200
commit4689fe341ca7c7231d0409526b9ee0f2eadde445 (patch)
tree12d51f3471b2dfd448768cb8e540ee4668869453 /searx/engines/github.py
parentbbd83f5a519381ac7ea690a1645258d106a9ba8a (diff)
downloadsearxng-4689fe341ca7c7231d0409526b9ee0f2eadde445.tar.gz
searxng-4689fe341ca7c7231d0409526b9ee0f2eadde445.zip
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