http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11008
Revision: 11008
Author: xqt
Date: 2013-01-27 14:40:33 +0000 (Sun, 27 Jan 2013)
Log Message:
-----------
https protocol if config.SSL_connection
Modified Paths:
--------------
trunk/pywikipedia/family.py
Modified: trunk/pywikipedia/family.py
===================================================================
--- trunk/pywikipedia/family.py 2013-01-27 14:21:18 UTC (rev 11007)
+++ trunk/pywikipedia/family.py 2013-01-27 14:40:33 UTC (rev 11008)
@@ -4028,7 +4028,7 @@
Can be overridden to return 'https'.
Other protocols are not supported.
"""
- return 'http'
+ return 'http%s' % ('', 's')[config.SSL_connection]
def hostname(self, code):
"""The hostname to use for standard http
connections."""