Description: fix SSL certificate verify failed on Python 2.7.9.
Bug: https://github.com/tgalal/yowsup/issues/677
Author: Tarek Galal <tare2.galal@gmail.com>
Last-Update: 2015-04-17
Index: yowsup-2.2.78/yowsup/common/http/test_warequest.py
===================================================================
--- /dev/null
+++ yowsup-2.2.78/yowsup/common/http/test_warequest.py
@@ -0,0 +1 @@
+from yowsup.common.http.warequest import WARequest
Index: yowsup-2.2.78/yowsup/common/http/warequest.py
===================================================================
--- yowsup-2.2.78.orig/yowsup/common/http/warequest.py
+++ yowsup-2.2.78/yowsup/common/http/warequest.py
@@ -7,6 +7,12 @@ CURRENT_ENV = S40YowsupEnv()
 if sys.version_info < (3, 0):
     import httplib
     from urllib import urlencode
+
+    if sys.version_info >= (2, 7, 9):
+        #see https://github.com/tgalal/yowsup/issues/677
+        import ssl
+        ssl._create_default_https_context = ssl._create_unverified_context
+
 else:
     from http import client as httplib
     from urllib.parse import urlencode
