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}, }
pywikibot-commits@lists.wikimedia.org