diff --git a/mwclient/page.py b/mwclient/page.py index dbba7d573c90a9cb83e156a3826326b93302b33e..7d6d071e3881e753fc06ea5191cd1c79eacc86cf 100644 --- a/mwclient/page.py +++ b/mwclient/page.py @@ -120,19 +120,10 @@ class Page(object): def get_token(self, type, force=False): return self.site.get_token(type, force, title=self.name) - def get_expanded(self): - """Deprecated. Use page.text(expandtemplates=True) instead""" - warnings.warn("page.get_expanded() was deprecated in mwclient 0.7.0 " - "and will be removed in 0.8.0, " - "use page.text(expandtemplates=True) instead.", - category=DeprecationWarning, stacklevel=2) - - return self.text(expandtemplates=True) - def edit(self, *args, **kwargs): """Deprecated. Use page.text() instead""" warnings.warn("page.edit() was deprecated in mwclient 0.7.0 " - "and will be removed in 0.8.0, please use page.text() instead.", + "and will be removed in 0.9.0, please use page.text() instead.", category=DeprecationWarning, stacklevel=2) return self.text(*args, **kwargs) diff --git a/tests/test_page.py b/tests/test_page.py index 5ff67c49b60afa8c32a12439fcece1d6355c6e2e..c2228eacbe4c6f1ace5771d821bca21d7f18ce3b 100644 --- a/tests/test_page.py +++ b/tests/test_page.py @@ -263,13 +263,6 @@ class TestPageApiArgs(unittest.TestCase): assert args['rvexpandtemplates'] == '1' - def test_get_text_expanded_deprecated(self): - # Check that the 'rvexpandtemplates' parameter is sent to the API - text = self.page.get_expanded() - args = self.get_last_api_call_args() - - assert args['rvexpandtemplates'] == '1' - if __name__ == '__main__': unittest.main()