jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/470550 )
Change subject: [deprecated] Use latest_file_info.user instead of getLatestUploader()[0]
......................................................................
[deprecated] Use latest_file_info.user instead of getLatestUploader()[0]
getLatestUploader() method is deprecated for 4 years.
Use latest_file_info.user instead.
Bug: T208292
Change-Id: I1d3eaea4c11b4e4a0b2ef200ca2d4f69fd2ab389
---
M scripts/imagecopy.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Framawiki: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/imagecopy.py b/scripts/imagecopy.py
index 4e8f70f..1b4f7f0 100644
--- a/scripts/imagecopy.py
+++ b/scripts/imagecopy.py
@@ -533,7 +533,7 @@
else:
# The first upload is last in the list.
try:
- username = imagepage.getLatestUploader()[0]
+ username = imagepage.latest_file_info.user
except NotImplementedError:
# No API, using the page file instead
(datetime, username, resolution, size,
--
To view, visit https://gerrit.wikimedia.org/r/470550
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I1d3eaea4c11b4e4a0b2ef200ca2d4f69fd2ab389
Gerrit-Change-Number: 470550
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Framawiki <framawiki(a)tools.wmflabs.org>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Mpaa <mpaa.wiki(a)gmail.com>
Gerrit-Reviewer: jenkins-bot (75)
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/470316 )
Change subject: Localisation updates from https://translatewiki.net.
......................................................................
Localisation updates from https://translatewiki.net.
Change-Id: If76b8f1bc08a7322b5dfa4abb0bec6bd4743498c
---
M archivebot/hi.json
M category/hi.json
M category_redirect/hi.json
M pywikibot/hi.json
M pywikibot/qqq.json
M redirect/hi.json
M reflinks/hi.json
M solve_disambiguation/hi.json
M template/hi.json
M thirdparty/hi.json
M unusedfiles/hi.json
11 files changed, 66 insertions(+), 26 deletions(-)
Approvals:
L10n-bot: Looks good to me, approved
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/archivebot/hi.json b/archivebot/hi.json
index bee36b6..9976dae 100644
--- a/archivebot/hi.json
+++ b/archivebot/hi.json
@@ -7,7 +7,7 @@
]
},
"archivebot-archive-full": "(पुरालेख पूर्ण)",
- "archivebot-archive-summary": "बॉट: %(count)d {{PLURAL:%(count)d|सूत्र|सूत्रों}} को [[%(from)s]] से संग्रहीत किया जा रहा है।",
+ "archivebot-archive-summary": "बॉट: %(count)d {{PLURAL:%(count)d|सूत्र|सूत्रों}} को [[%(from)s]] से संग्रहीत किया जा रहा है",
"archivebot-older-than": "%(duration)s से पुराना",
- "archivebot-page-summary": "बॉट:%(count)d {{PLURAL:%(count)d|सूत्र|सूत्रों}} को (%(why)s) %(archives)s में संग्रहीत किया जा रहा है।"
+ "archivebot-page-summary": "बॉट:%(count)d {{PLURAL:%(count)d|सूत्र|सूत्रों}} को (%(why)s) %(archives)s में संग्रहीत किया जा रहा है"
}
diff --git a/category/hi.json b/category/hi.json
index c531ca0..e9e42c9 100644
--- a/category/hi.json
+++ b/category/hi.json
@@ -13,6 +13,8 @@
"category-replacing": "बॉट: %(oldcat)s की जगह %(newcat)s जोड़ रहा है",
"category-section-title": "पुरानी %(oldcat)s का पृष्ठ इतिहास",
"category-strip-cfd-templates": "बॉट: कार्य पूर्ण होने के बाद श्रेणी-हटाने का साँचा हटाया जा रहा है।",
+ "category-strip-sort-keys": "बॉट: कठिन कार्य के लिए क्रमित कुँजी हटा रहा",
+ "category-strip-both": "बॉट: कठिन कार्य के लिए क्रमित कुँजी और हटाने योग्य श्रेणियों के साँचे हटा रहा",
"category-version-history": "बॉट: पुरानी %(oldcat)s का अवतरण इतिहास सहेज रहा है",
"category-was-disbanded": "बॉट: श्रेणी समाप्त कर दी गयी",
"category-was-moved": "बॉट: श्रेणी को [[:Category:%(newcat)s|%(title)s]] पर स्थानांतरित किया गया"
diff --git a/category_redirect/hi.json b/category_redirect/hi.json
index 9541197..777fca2 100644
--- a/category_redirect/hi.json
+++ b/category_redirect/hi.json
@@ -2,13 +2,30 @@
"@metadata": {
"authors": [
"Mayur",
- "Siddhartha Ghai"
+ "Siddhartha Ghai",
+ "संजीव कुमार"
]
},
- "category_redirect-add-template": "बॉट: रखरखाव के लिए श्रेणी पुनर्प्रेषण साँचा जोड़ा गया",
+ "category_redirect-add-template": "बॉट: रखरखाव के लिए श्रेणी पुनर्प्रेषण साँचा जोड़ा जा रहा",
"category_redirect-change-category": "बॉट: पुनर्प्रेषित श्रेणी [[:%(oldCatLink)s|%(oldCatTitle)s]] की जगह [[:%(newCatLink)s|%(newCatTitle)s]] जोड़ी",
"category_redirect-comment": "श्रेणी पुनर्प्रेषण रखरखाव रोबॉट",
"category_redirect-edit-request": "निम्न सुरक्षित पृष्ठ पाए गए हैं जिनमें श्रेणियों को अद्यतित करने की आवश्यकता है: %(itemlist)s",
"category_redirect-edit-request-item": "* %(title)s %(oldcat)s में है, जो %(newcat)s को पुनर्प्रेषित है",
- "category_redirect-fix-double": "बॉट: दुगना पुनर्प्रेषण सही किया गया"
+ "category_redirect-fix-double": "बॉट: दुगना पुनर्प्रेषण सही किया गया",
+ "category_redirect-log-added": "* %(oldcat)s में [[%(ns)s%(template)s]] जोड़ा।",
+ "category_redirect-log-add-failed": "* %(oldcat)s में [[%(ns)s%(template)s]] जोड़ना असफल रहा।",
+ "category_redirect-log-double": "* द्वि-अनुप्रेषण ठीक किया: %(oldcat)s -> %(newcat)s -> %(targetcat)s",
+ "category_redirect-log-failed": "** असफल: %(error)s",
+ "category_redirect-log-false-positive": "* असत्य सकारात्मक: %(oldcat)s",
+ "category_redirect-log-ignoring": "* उपेक्षित %(oldcat)s",
+ "category_redirect-log-loop": "* %(oldcat)s से अनुप्रेषण पाश",
+ "category_redirect-log-moved": "* %(oldcat)s: %(found)d मिला, %(moved)d स्थानान्तरित किया",
+ "category_redirect-log-move-error": "* %(oldcat)s: स्थानान्तरन_सामग्री में त्रुटि",
+ "category_redirect-log-new": "पिछली बार देखने के पश्चात् नये अनुप्रेषण",
+ "category_redirect-log-not-loaded": "* %(oldcat)s को लोड नहीं कर सका; उपेक्षा कर रहा",
+ "category_redirect-log-skipping": "* %(oldcat)s छोड़ रहा; मुक्त समय में",
+ "category_redirect-older-logs": "'''[%(oldlogs)s पुराना लॉग]'''",
+ "category_redirect-problem-hard": "# %(oldcat)s, %(page)s पर पूर्णतः अनुप्रेषित है।",
+ "category_redirect-problem-redirects": "# %(oldcat)s, %(redpage)s पर अनुप्रेषित होती है",
+ "category_redirect-problem-self-linked": "# %(oldcat)s अपने आप पर अनुप्रेषित हो रही है"
}
diff --git a/pywikibot/hi.json b/pywikibot/hi.json
index 4b83b5a..b1b5304 100644
--- a/pywikibot/hi.json
+++ b/pywikibot/hi.json
@@ -5,6 +5,7 @@
]
},
"pywikibot-enter-category-name": "कृपया श्रेणी का नाम लिखें:",
+ "pywikibot-enter-file-links-processing": "कौनसा फाइल पृष्ठ संशोधित होना चाहिए की कड़ी जोड़ता है?",
"pywikibot-enter-finished-browser": "जब ब्राउजर में समाप्त हो जाये तब एंटर बटन दबायें।",
"pywikibot-enter-namespace-number": "कृपया सम्बंधित संख्या द्वारा नामस्थान लिखें:",
"pywikibot-enter-new-text": "कृपया नया पाठ डालें:",
diff --git a/pywikibot/qqq.json b/pywikibot/qqq.json
index 93fc39d..a72a5f2 100644
--- a/pywikibot/qqq.json
+++ b/pywikibot/qqq.json
@@ -3,17 +3,18 @@
"authors": [
"Als-Holder",
"Fabian Neundorf",
- "TTMTT"
+ "TTMTT",
+ "संजीव कुमार"
]
},
- "pywikibot-enter-category-name": "Message displayed to the bot owner to enter the category name.",
- "pywikibot-enter-file-links-processing": "Question displayed to the bot owner processing links to a given file page.",
- "pywikibot-enter-finished-browser": "Message displayed to the bot owner to press Enter button when browser edits are finished.",
- "pywikibot-enter-namespace-number": "Message displayed to the bot owner to enter a namespace by its number.",
- "pywikibot-enter-new-text": "Message displayed to the bot owner to enter the new text.",
- "pywikibot-enter-page-processing": "Question displayed to the bot owner which page should be processed.",
- "pywikibot-enter-xml-filename": "Message displayed to the bot owner to enter the XML dump's filename.",
- "pywikibot-fixes-fckeditor": "Edit summary for fixes which convert HTML tags from FCK-editor to wiki syntax.",
- "pywikibot-fixes-html": "Edit summary for the HTML fixes.",
- "pywikibot-fixes-syntax": "Edit summary for the syntax and syntax-safe fixes."
+ "pywikibot-enter-category-name": "कृपया श्रेणी का नाम डालें:",
+ "pywikibot-enter-file-links-processing": "जिस फ़ाइल पृष्ठ संशोधित करना है, उसकी कड़ी?",
+ "pywikibot-enter-finished-browser": "ब्राउजर में पूर्ण होने के पश्चात् एंटर दबायें।",
+ "pywikibot-enter-namespace-number": "कृपया नामस्थान को उसकी संख्या से लिखें:",
+ "pywikibot-enter-new-text": "कृपया नयी सामग्री लिखें:",
+ "pywikibot-enter-page-processing": "कौनसे पृष्ठ को संशोधित करना चाहिए?",
+ "pywikibot-enter-xml-filename": "कृपया एक्सएमएल फाइल नाम लिखें:",
+ "pywikibot-fixes-fckeditor": "बॉट: उच्च-सम्पादन एचटीएमएल को ठीक कर रहा।",
+ "pywikibot-fixes-html": "बॉट: परिवर्तन/ऍचटीएमएल सुधार",
+ "pywikibot-fixes-syntax": "बॉट: विकि सेंटेक्स सुधार"
}
diff --git a/redirect/hi.json b/redirect/hi.json
index adb2817..93413b1 100644
--- a/redirect/hi.json
+++ b/redirect/hi.json
@@ -2,11 +2,13 @@
"@metadata": {
"authors": [
"Jayprakash12345",
- "Sfic"
+ "Sfic",
+ "संजीव कुमार"
]
},
"redirect-fix-broken-moved": "बॉट: स्थानांतरित लक्ष्य %(to)s पृष्ठ पर टूटी हुई रीडायरेक्ट को ठीक करना।",
"redirect-fix-double": "बॉट: %(to)s को दोहरे पुननिर्देशित ठीक किया।",
"redirect-fix-loop": "बॉट: %(to)s को पुननिर्देशित लूप ठीक किया।",
- "redirect-remove-broken": "बॉट: हटाये गए या अनुपस्थित पृष्ठ पर अनुप्रेषित"
+ "redirect-remove-broken": "बॉट: हटाये गए या अनुपस्थित पृष्ठ पर अनुप्रेषित",
+ "redirect-remove-loop": "बॉट: अनुप्रेषण लक्ष्य एक अनुप्रेषण पाश बनाता है"
}
diff --git a/reflinks/hi.json b/reflinks/hi.json
index 85bda9d..ce45a1f 100644
--- a/reflinks/hi.json
+++ b/reflinks/hi.json
@@ -2,9 +2,11 @@
"@metadata": {
"authors": [
"Jayprakash12345",
- "Sfic"
+ "Sfic",
+ "संजीव कुमार"
]
},
"reflinks-autogen": "स्वतःनिर्मित",
- "reflinks-comment": "बॉट निर्मित शीर्षक"
+ "reflinks-comment": "बॉट निर्मित शीर्षक",
+ "reflinks-msg": "बॉट: प्रतिलिपि सन्दर्भों को परिवर्तित कर रहा, प्रतिलिपि से बचने के लिए सन्दर्भ नाम उपयोग कर रहा, [[%(manual)s|अक्सर पूछे जाने वाले प्रश्न]] देखें"
}
diff --git a/solve_disambiguation/hi.json b/solve_disambiguation/hi.json
index cd15bd0..0e572ee 100644
--- a/solve_disambiguation/hi.json
+++ b/solve_disambiguation/hi.json
@@ -1,8 +1,15 @@
{
"@metadata": {
"authors": [
- "Siddhartha Ghai"
+ "Siddhartha Ghai",
+ "संजीव कुमार"
]
},
+ "solve_disambiguation-adding-dn-template": "बॉट-सहायक बहुविकल्पी: %(from)s - विशेषज्ञ के ध्यान की आवश्यकता के रूप में चिह्नित किया।",
+ "solve_disambiguation-links-removed": "बॉट-सहायक बहुविकल्पी: %(from)s - कड़ी(याँ) हटाई।",
+ "solve_disambiguation-links-resolved": "बॉट-सहायक बहुविकल्पी: %(from)s - %(to)s से कड़ी(याँ) बदली",
+ "solve_disambiguation-redirect-adding-dn-template": "बॉट-सहायक बहुविकल्पी: %(from)s - विशेषज्ञ के ध्यान की आवश्यकता के रूप में चिह्नित किया।",
+ "solve_disambiguation-redirect-removed": "बॉट-सहायक बहुविकल्पी: %(from)s - कड़ी(याँ) हटाई",
+ "solve_disambiguation-redirect-resolved": "बॉट-सहायक बहुविकल्पी: %(from)s - %(to)s से कड़ी(याँ) बदली",
"solve_disambiguation-unknown-page": "(अज्ञात)"
}
diff --git a/template/hi.json b/template/hi.json
index 1271330..99572dc 100644
--- a/template/hi.json
+++ b/template/hi.json
@@ -1,9 +1,11 @@
{
"@metadata": {
"authors": [
- "Siddhartha Ghai"
+ "Siddhartha Ghai",
+ "संजीव कुमार"
]
},
"template-changing": "बॉट: {{PLURAL:%(num)d|साँचा|साँचे}} बदल रहा है: %(list)s",
- "template-removing": "बॉट: {{PLURAL:%(num)d|साँचा|साँचे}} हटा रहा है: %(list)s"
+ "template-removing": "बॉट: {{PLURAL:%(num)d|साँचा|साँचे}} हटा रहा है: %(list)s",
+ "template-substituting": "बॉट: {{PLURAL:%(num)d|साँचा|साँचे}} स्थानापन: %(list)s"
}
diff --git a/thirdparty/hi.json b/thirdparty/hi.json
index 7c364f3..52ad057 100644
--- a/thirdparty/hi.json
+++ b/thirdparty/hi.json
@@ -2,7 +2,8 @@
"@metadata": {
"authors": [
"Siddhartha Ghai",
- "Jayprakash12345"
+ "Jayprakash12345",
+ "संजीव कुमार"
]
},
"thirdparty-drtrigonbot-subster-summary-mod": "%(tags)s टैग प्रतिस्थापन",
@@ -11,7 +12,11 @@
"thirdparty-drtrigonbot-sum_disc-notify-maintmsg": "बॉट सन्देश",
"thirdparty-drtrigonbot-sum_disc-notify-new": "नयी चर्चा",
"thirdparty-drtrigonbot-sum_disc-notify-notify": "अधिसूचना",
+ "thirdparty-drtrigonbot-sum_disc-parse": ":* %(notify)s: %(page_sections)s - %(user)s (%(time)s) द्वारा (%(page_size)s बाइट) [%(history_link)s पिछला सम्पादन]",
+ "thirdparty-drtrigonbot-sum_disc-parse-closed": ":* %(notify)s: %(page)s पर सभी चर्चायें समाप्त हो गयी हैं (निगरानी बन्द कर दी) - पिछला सम्पादन %(user)s द्वारा (%(time)s) पर किया गया",
+ "thirdparty-drtrigonbot-sum_disc-parse-end": "<noinclude>\n\nसारांश निर्मित किया गया और यहाँ: %(sign)s</noinclude>",
"thirdparty-drtrigonbot-sum_disc-parse-nonhuman": "(कोई इंसानी सम्पादक नहीं मिला)",
+ "thirdparty-drtrigonbot-sum_disc-parse-notify": ":* %(notify)s: <span class=\"plainlinks\">[%(page_link)s %(page)s]</span> - पिछला सम्पादन [[User:%(user)s]] द्वारा (%(time)s) पर किया गया।",
"thirdparty-drtrigonbot-sum_disc-parse-start": "; %d. %B %Y",
"thirdparty-drtrigonbot-sum_disc-parse-warning": ":* बॉट चेतावनी संदेश: %(page)s \"''%(warning)s''\"",
"thirdparty-drtrigonbot-sum_disc-summary-add": "चर्चा सारांश जोड़ा: %(num)i प्रविष्टियां",
diff --git a/unusedfiles/hi.json b/unusedfiles/hi.json
index 862b8ad..89c8759 100644
--- a/unusedfiles/hi.json
+++ b/unusedfiles/hi.json
@@ -1,8 +1,9 @@
{
"@metadata": {
"authors": [
- "Jayprakash12345"
+ "Jayprakash12345",
+ "संजीव कुमार"
]
},
- "unusedfiles-comment": "बीट: विलोपन के लिए छवियाँ"
+ "unusedfiles-comment": "बीट: फाइल को एकाकी के रूप में चिप्पि लगा रहा"
}
--
To view, visit https://gerrit.wikimedia.org/r/470316
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/i18n
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: If76b8f1bc08a7322b5dfa4abb0bec6bd4743498c
Gerrit-Change-Number: 470316
Gerrit-PatchSet: 1
Gerrit-Owner: L10n-bot <l10n-bot(a)translatewiki.net>
Gerrit-Reviewer: L10n-bot <l10n-bot(a)translatewiki.net>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot (75)
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/462482 )
Change subject: [IMPR] Use a set for lookup instead a list
......................................................................
[IMPR] Use a set for lookup instead a list
Update test accordingly
Change-Id: Ib3c7676052b6866ab47e1c49087fe8c73e421d4f
---
M scripts/patrol.py
M tests/patrolbot_tests.py
2 files changed, 16 insertions(+), 16 deletions(-)
Approvals:
D3r1ck01: Looks good to me, approved
Zhuyifei1999: Looks good to me, but someone else must approve
jenkins-bot: Verified
diff --git a/scripts/patrol.py b/scripts/patrol.py
index 8704d6d..85aa2b7 100755
--- a/scripts/patrol.py
+++ b/scripts/patrol.py
@@ -199,7 +199,7 @@
def parse_page_tuples(self, wikitext, user=None):
"""Parse page details apart from 'user:' for use."""
- whitelist = defaultdict(list)
+ whitelist = defaultdict(set)
current_user = False
parsed = mwparserfromhell.parse(wikitext)
@@ -253,7 +253,7 @@
verbose_output('Whitelist page: ' + page)
verbose_output('Adding {0}:{1}'
.format(current_user, page))
- whitelist[current_user].append(page)
+ whitelist[current_user].add(page)
else:
verbose_output(
'Discarding whitelist page for another user: '
diff --git a/tests/patrolbot_tests.py b/tests/patrolbot_tests.py
index 2185c2f..15d3217 100644
--- a/tests/patrolbot_tests.py
+++ b/tests/patrolbot_tests.py
@@ -54,30 +54,30 @@
for gen_user in (1, 2):
user = 'Test {0}'.format(gen_user)
self.assertIn(user, tuples)
- self.assertEqual(tuples[user], ['Page {0}'.format(i * gen_user)
- for i in range(1, 4)])
+ self.assertEqual(tuples[user], {'Page {0}'.format(i * gen_user)
+ for i in range(1, 4)})
self.assertIn('Prefixed', tuples)
- self.assertEqual(tuples['Prefixed'], ['Page 1', 'Page 2'])
+ self.assertEqual(tuples['Prefixed'], {'Page 1', 'Page 2'})
self.assertEqual(self.bot.parse_page_tuples('[[link]]'), {})
def test_in_list(self):
- """Test the method which returns whether a page is in the list."""
+ """Test the method which returns whether a page is in the set."""
# Return True if there is an exact match
- self.assertTrue(self.bot.in_list(['Foo', 'Foobar'], 'Foo'))
- self.assertTrue(self.bot.in_list(['Foo', 'Foobar'], 'Foobar'))
- self.assertFalse(self.bot.in_list(['Foo', 'Foobar'], 'Bar'))
+ self.assertTrue(self.bot.in_list({'Foo', 'Foobar'}, 'Foo'))
+ self.assertTrue(self.bot.in_list({'Foo', 'Foobar'}, 'Foobar'))
+ self.assertFalse(self.bot.in_list({'Foo', 'Foobar'}, 'Bar'))
# Return True if an entry starts with the title if there is no
# exact match
- self.assertTrue(self.bot.in_list(['Foo', 'Foobar'], 'Foob'))
- self.assertTrue(self.bot.in_list(['Foo', 'Foobar'], 'Foobarz'))
- self.assertTrue(self.bot.in_list(['Foo', 'Foobar', 'Bar'], 'Barz'))
- self.assertFalse(self.bot.in_list(['Foobar', 'Bar'], 'Foo'))
+ self.assertTrue(self.bot.in_list({'Foo', 'Foobar'}, 'Foob'))
+ self.assertTrue(self.bot.in_list({'Foo', 'Foobar'}, 'Foobarz'))
+ self.assertTrue(self.bot.in_list({'Foo', 'Foobar', 'Bar'}, 'Barz'))
+ self.assertFalse(self.bot.in_list({'Foobar', 'Bar'}, 'Foo'))
# '' returns True if there is no exact match
- self.assertTrue(self.bot.in_list([''], 'Foo'))
- self.assertTrue(self.bot.in_list(['', 'Foobar'], 'Foo'))
- self.assertTrue(self.bot.in_list(['', 'Foo'], 'Foo'))
+ self.assertTrue(self.bot.in_list({''}, 'Foo'))
+ self.assertTrue(self.bot.in_list({'', 'Foobar'}, 'Foo'))
+ self.assertTrue(self.bot.in_list({'', 'Foo'}, 'Foo'))
if __name__ == '__main__': # pragma: no cover
--
To view, visit https://gerrit.wikimedia.org/r/462482
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib3c7676052b6866ab47e1c49087fe8c73e421d4f
Gerrit-Change-Number: 462482
Gerrit-PatchSet: 7
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: D3r1ck01 <alangiderick(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: Zhuyifei1999 <zhuyifei1999(a)gmail.com>
Gerrit-Reviewer: jenkins-bot (75)
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/467673 )
Change subject: [doc] Add Python version shield to README.rst
......................................................................
[doc] Add Python version shield to README.rst
this looks much more informative than the left side menu bar
Change-Id: I7b1b5444d2b012b789d984b60e82117c0adf5718
---
M README.rst
1 file changed, 3 insertions(+), 0 deletions(-)
Approvals:
Dvorapa: Looks good to me, but someone else must approve
Dalba: Looks good to me, approved
jenkins-bot: Verified
diff --git a/README.rst b/README.rst
index 5fe87db..ea1f104 100644
--- a/README.rst
+++ b/README.rst
@@ -10,6 +10,9 @@
.. image:: https://api.codeclimate.com/v1/badges/de6ca4c66e7c7bee4156/maintainability
:alt: Maintainability
:target: https://codeclimate.com/github/wikimedia/pywikibot/maintainability
+.. image:: https://img.shields.io/pypi/pyversions/pywikibot.svg
+ :alt: Python
+ :target: https://www.python.org/downloads/
.. image:: https://img.shields.io/pypi/v/pywikibot.svg
:alt: Pywikibot release
:target: https://pypi.org/project/pywikibot/
--
To view, visit https://gerrit.wikimedia.org/r/467673
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I7b1b5444d2b012b789d984b60e82117c0adf5718
Gerrit-Change-Number: 467673
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: Dvorapa <dvorapa(a)seznam.cz>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: jenkins-bot (75)
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/467916 )
Change subject: [IMPR] early continues in parse_page_tuples instead of scrolling down the code
......................................................................
[IMPR] early continues in parse_page_tuples instead of scrolling down the code
detached from I4ef9009c91e485509e4ae05a04404b3c06a5331c
Change-Id: I4a17f1bba72e9add0579190e59b8d2a42706d43a
---
M scripts/patrol.py
1 file changed, 4 insertions(+), 2 deletions(-)
Approvals:
jenkins-bot: Verified
Dalba: Looks good to me, approved
diff --git a/scripts/patrol.py b/scripts/patrol.py
index e72e7ad..d359b3c 100755
--- a/scripts/patrol.py
+++ b/scripts/patrol.py
@@ -202,10 +202,12 @@
if isinstance(node, mwparserfromhell.nodes.tag.Tag):
if node.tag == 'li':
current_user = None
- elif isinstance(node, mwparserfromhell.nodes.text.Text):
+ continue
+ if isinstance(node, mwparserfromhell.nodes.text.Text):
if node.endswith('\n'):
current_user = False
- elif isinstance(node, mwparserfromhell.nodes.wikilink.Wikilink):
+ continue
+ if isinstance(node, mwparserfromhell.nodes.wikilink.Wikilink):
if current_user is False:
pywikibot.debug('Link to "{0}" ignored as outside '
'list'.format(node.title), _logger)
--
To view, visit https://gerrit.wikimedia.org/r/467916
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I4a17f1bba72e9add0579190e59b8d2a42706d43a
Gerrit-Change-Number: 467916
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: jenkins-bot (75)
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/467910 )
Change subject: [cleanup] remove hidden code parts
......................................................................
[cleanup] remove hidden code parts
detached from I4ef9009c91e485509e4ae05a04404b3c06a5331c
Change-Id: I4026292aff74fc1dafcc198c3b11219d9700f6f1
---
M scripts/patrol.py
1 file changed, 0 insertions(+), 3 deletions(-)
Approvals:
jenkins-bot: Verified
Dalba: Looks good to me, approved
diff --git a/scripts/patrol.py b/scripts/patrol.py
index e72e7ad..a365f1c 100755
--- a/scripts/patrol.py
+++ b/scripts/patrol.py
@@ -226,9 +226,6 @@
page = prefix
verbose_output('Whitelist prefixindex hack for: '
+ page)
- # p = pywikibot.Page(self.site, obj.target[20:])
- # obj.namespace = p.namespace
- # obj.target = p.title()
elif obj.namespace == 2 and not current_user:
# if a target user hasn't been found yet, and the link is
--
To view, visit https://gerrit.wikimedia.org/r/467910
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I4026292aff74fc1dafcc198c3b11219d9700f6f1
Gerrit-Change-Number: 467910
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: jenkins-bot (75)