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

Change subject: [cleanup] Remove category_namespaces
......................................................................

[cleanup] Remove category_namespaces

Xqt reverted this because I deleted several other methods that didn't provide
a FutureWarning. This narrows the change just to the one method that did.

Change-Id: I467b533602bbe2d33b79db57a876fdc2dac5a943
---
M pywikibot/site/_basesite.py
M tests/site_tests.py
2 files changed, 0 insertions(+), 8 deletions(-)

Approvals:
  JJMC89: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/site/_basesite.py b/pywikibot/site/_basesite.py
index eecc0d9..32c36a1 100644
--- a/pywikibot/site/_basesite.py
+++ b/pywikibot/site/_basesite.py
@@ -435,12 +435,6 @@
         """Return local name for the Category namespace."""
         return self.namespace(14)

-    @deprecated('list(namespaces.CATEGORY)', since='20150829',
-                future_warning=True)
-    def category_namespaces(self):  # pragma: no cover
-        """Return names for the Category namespace."""
-        return list(self.namespace(14, all=True))
-
     # site-specific formatting preferences

     def category_on_one_line(self):
diff --git a/tests/site_tests.py b/tests/site_tests.py
index 69ec6da..f2bd76c 100644
--- a/tests/site_tests.py
+++ b/tests/site_tests.py
@@ -69,8 +69,6 @@
                          self.site.namespace(10))
         self.assertEqual(self.site.category_namespace(),
                          self.site.namespace(14))
-        self.assertEqual(self.site.category_namespaces(),
-                         list(self.site.namespace(14, all=True)))


 class TestSiteDryDeprecatedFunctions(DefaultDrySiteTestCase,

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/693580
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: I467b533602bbe2d33b79db57a876fdc2dac5a943
Gerrit-Change-Number: 693580
Gerrit-PatchSet: 4
Gerrit-Owner: Damian <[email protected]>
Gerrit-Reviewer: JJMC89 <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to