jenkins-bot submitted this change.

View Change

Approvals: Matěj Suchánek: Looks good to me, approved jenkins-bot: Verified
[4.0] remove __future__ imports in plural.py

Change-Id: I92ce83103fa75c7659eb2e090071d6261e45f404
---
M pywikibot/plural.py
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/pywikibot/plural.py b/pywikibot/plural.py
index 56fcc6a..70bc201 100644
--- a/pywikibot/plural.py
+++ b/pywikibot/plural.py
@@ -5,9 +5,6 @@
#
# Distributed under the terms of the MIT license.
#
-from __future__ import absolute_import, division, unicode_literals
-
-
plural_rules = {
'_default': {'nplurals': 2, 'plural': lambda n: (n != 1)},
'ar': {'nplurals': 6, 'plural': lambda n:
@@ -78,7 +75,7 @@
'sl': {'nplurals': 4, 'plural': lambda n:
0 if (n % 100 == 1) else
1 if (n % 100 == 2) else
- 2 if (n % 100 == 3 or n % 100 == 4) else
+ 2 if n % 100 in (3, 4) else
3},
}


To view, visit change 616059. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I92ce83103fa75c7659eb2e090071d6261e45f404
Gerrit-Change-Number: 616059
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97@gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged