Author: humbedooh
Date: Tue Jun  2 13:23:32 2020
New Revision: 1878395

URL: http://svn.apache.org/viewvc?rev=1878395&view=rev
Log:
temp workaround for ssl verify buggo

Modified:
    comdev/reporter.apache.org/trunk/scripts/urlutils.py

Modified: comdev/reporter.apache.org/trunk/scripts/urlutils.py
URL: 
http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/urlutils.py?rev=1878395&r1=1878394&r2=1878395&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/urlutils.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/urlutils.py Tue Jun  2 13:23:32 
2020
@@ -25,6 +25,10 @@ except:
 import time
 import calendar
 
+# urllib is currently broken and will fail on cert verify. Revert once box has 
been upgraded.
+import ssl
+ssl._create_default_https_context = ssl._create_unverified_context
+
 # time format used in Last-Modified/If-Modified-Since HTTP headers
 _HTTP_TIME_FORMAT = '%a, %d %b %Y %H:%M:%S GMT'
 
@@ -268,4 +272,4 @@ if __name__ == '__main__':
     fc.get(GIT+ASF,ASF)
     fc.get("https://svn.apache.org/repos/asf/subversion/README","README";)
     print("Done")
-    
\ No newline at end of file
+    


Reply via email to