jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/616059 )

Change subject: [4.0] remove __future__ imports in plural.py
......................................................................

[4.0] remove __future__ imports in plural.py

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

Approvals:
  Matěj Suchánek: Looks good to me, approved
  jenkins-bot: Verified



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 https://gerrit.wikimedia.org/r/c/pywikibot/core/+/616059
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I92ce83103fa75c7659eb2e090071d6261e45f404
Gerrit-Change-Number: 616059
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Matěj Suchánek <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to