diff --git a/mwclient/page.py b/mwclient/page.py index c7d7c1018d14441bc709acafb1c87b476690812f..58cdabc620e7ce4e5b9f51808669a09a9d0f2282 100644 --- a/mwclient/page.py +++ b/mwclient/page.py @@ -14,7 +14,6 @@ class Page(object): return self.__dict__.update(name.__dict__) self.site = site self.name = name - self.section = None if not info: if extra_properties: @@ -147,11 +146,9 @@ class Page(object): try: rev = revs.next() text = rev['*'] - self.section = section self.last_rev_time = rev['timestamp'] except StopIteration: text = u'' - self.section = None self.last_rev_time = None if not expandtemplates: self.edit_time = time.gmtime() @@ -172,14 +169,6 @@ class Page(object): if not self.can('edit'): raise mwclient.errors.ProtectedPageError(self) - if self.section is not None and section is None: - warnings.warn('From mwclient version 0.8.0, the `save()` method will no longer ' + - 'implicitly use the `section` parameter from the last `text()` or ' + - '`edit()` call. Please pass the `section` parameter explicitly to ' + - 'the save() method to save only a single section.', - category=DeprecationWarning, stacklevel=2) - section = self.section - if not self.site.writeapi: raise mwclient.errors.NoWriteApi(self)