jenkins-bot has submitted this change and it was merged.
Change subject: Revert "Making SSL connection true as default per disabling http for logged in users in 21 August"
......................................................................
Revert "Making SSL connection true as default per disabling http for logged in users in 21 August"
This reverts commit 5edb7bcf35d8f5724a274832b3e5102ecb89d34c.
The WMF is not switching for another week [1] and this change breaks editing
on WMF sites due to a missing root certificate [2].
[1] http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/72200
[2] https://sourceforge.net/p/pywikipediabot/bugs/1656/
Change-Id: I6c0c587ad38c07101d580a22043bbd607eb0b14d
---
M pywikibot/family.py
1 file changed, 0 insertions(+), 3 deletions(-)
Approvals:
Ladsgroup: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/family.py b/pywikibot/family.py
index 88eb3d3..5796e4e 100644
--- a/pywikibot/family.py
+++ b/pywikibot/family.py
@@ -940,6 +940,3 @@
def shared_image_repository(self, code):
return ('commons', 'commons')
-
- def protocol(self, code):
- return 'https'
--
To view, visit https://gerrit.wikimedia.org/r/80351
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I6c0c587ad38c07101d580a22043bbd607eb0b14d
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: jenkins-bot
jenkins-bot has submitted this change and it was merged.
Change subject: Revert "Making SSL connection true as default per disabling http for logged in users in 21 August"
......................................................................
Revert "Making SSL connection true as default per disabling http for logged in users in 21 August"
This reverts commit 6addd6f70a386fd131acbe5c2d0b47f21a0cd68f.
The WMF is not switching for another week [1] and this change breaks editing
on WMF sites due to a missing root certificate [2].
[1] http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/72200
[2] https://sourceforge.net/p/pywikipediabot/bugs/1656/
Change-Id: Ifab59ca6d9701b65ae779a28727b7b27c8193974
---
M family.py
1 file changed, 0 insertions(+), 3 deletions(-)
Approvals:
Ladsgroup: Looks good to me, approved
jenkins-bot: Verified
diff --git a/family.py b/family.py
index 255cc3d..871519d 100644
--- a/family.py
+++ b/family.py
@@ -4726,6 +4726,3 @@
def shared_image_repository(self, code):
return ('commons', 'commons')
-
- def protocol(self, code):
- return 'https'
--
To view, visit https://gerrit.wikimedia.org/r/80350
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ifab59ca6d9701b65ae779a28727b7b27c8193974
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: jenkins-bot
jenkins-bot has submitted this change and it was merged.
Change subject: pep8-ified pywikibot/interwiki_graph.py
......................................................................
pep8-ified pywikibot/interwiki_graph.py
Change-Id: I7c0143664d06c3040181df12360626ace65482e9
---
M pywikibot/interwiki_graph.py
1 file changed, 11 insertions(+), 7 deletions(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/interwiki_graph.py b/pywikibot/interwiki_graph.py
index 21b39f7..5daf1a6 100644
--- a/pywikibot/interwiki_graph.py
+++ b/pywikibot/interwiki_graph.py
@@ -14,8 +14,10 @@
import pywikibot
from pywikibot import config2 as config
+
class GraphImpossible(Exception):
"Drawing a graph is not possible on your system."
+
class GraphSavingThread(threading.Thread):
"""
@@ -36,15 +38,16 @@
for format in config.interwiki_graph_formats:
filename = 'interwiki-graphs/' + getFilename(self.originPage,
format)
- if self.graph.write(filename, prog = 'dot', format = format):
+ if self.graph.write(filename, prog='dot', format=format):
pywikibot.output(u'Graph saved as %s' % filename)
else:
pywikibot.output(u'Graph could not be saved as %s' % filename)
+
class GraphDrawer:
def __init__(self, subject):
if not pydotfound:
- raise GraphImpossible, 'pydot is not installed.'
+ raise GraphImpossible('pydot is not installed.')
self.graph = None
self.subject = subject
@@ -53,7 +56,7 @@
page.title())).encode('utf-8')
def addNode(self, page):
- node = pydot.Node(self.getLabel(page), shape = 'rectangle')
+ node = pydot.Node(self.getLabel(page), shape='rectangle')
node.set_URL("\"http://%s%s\""
% (page.site.hostname(),
page.site.get_address(page.urlname())))
@@ -70,8 +73,8 @@
node.set_color('green')
node.set_style('filled,bold')
# if we found more than one valid page for this language:
- if len(filter(lambda p: p.site == page.site and p.exists() \
- and not p.isRedirectPage(),
+ if len(filter(lambda p: p.site == page.site and p.exists()
+ and not p.isRedirectPage(), # noqa
self.subject.foundIn.keys())) > 1:
# mark conflict by octagonal node
node.set_shape('octagon')
@@ -133,14 +136,15 @@
self.addNode(page)
# mark start node by pointing there from a black dot.
firstLabel = self.getLabel(self.subject.originPage)
- self.graph.add_node(pydot.Node('start', shape = 'point'))
+ self.graph.add_node(pydot.Node('start', shape='point'))
self.graph.add_edge(pydot.Edge('start', firstLabel))
for page, referrers in self.subject.foundIn.iteritems():
for refPage in referrers:
self.addDirectedEdge(page, refPage)
self.saveGraphFile()
-def getFilename(page, extension = None):
+
+def getFilename(page, extension=None):
filename = '%s-%s-%s' % (page.site.family.name,
page.site.language(),
page.titleForFilename())
--
To view, visit https://gerrit.wikimedia.org/r/79593
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I7c0143664d06c3040181df12360626ace65482e9
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Legoktm <legoktm.wikipedia(a)gmail.com>
Gerrit-Reviewer: jenkins-bot
jenkins-bot has submitted this change and it was merged.
Change subject: pep8-ified pywikibot/i18n.py
......................................................................
pep8-ified pywikibot/i18n.py
Change-Id: Ieea20eefadd8d3933621bc31ca47585ad8bd396b
---
M pywikibot/i18n.py
1 file changed, 2 insertions(+), 3 deletions(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/i18n.py b/pywikibot/i18n.py
index bc9f480..4a96bbe 100644
--- a/pywikibot/i18n.py
+++ b/pywikibot/i18n.py
@@ -25,7 +25,7 @@
@param code The language code
@type code string
@return a list of strings as language codes
-
+
If no translation is available to a specified language, translate() will
try each of the specified fallback languages, in order, until it finds
one with a translation, with 'en' and '_default' as a last resort.
@@ -502,7 +502,6 @@
default is os locale setting
"""
- code = config.userinterface_lang or \
- locale.getdefaultlocale()[0].split('_')[0]
+ code = config.userinterface_lang or locale.getdefaultlocale()[0].split('_')[0]
trans = twtranslate(code, twtitle, parameters)
return pywikibot.input(trans, password)
--
To view, visit https://gerrit.wikimedia.org/r/79592
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ieea20eefadd8d3933621bc31ca47585ad8bd396b
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Legoktm <legoktm.wikipedia(a)gmail.com>
Gerrit-Reviewer: jenkins-bot