jenkins-bot has submitted this change and it was merged.
Change subject: listpages.py: Link object might not have _site attribute ......................................................................
listpages.py: Link object might not have _site attribute
Replaced Link._site with Link.site property.
Change-Id: Ie17cb9f6229841216665169899d1ac1669a9a81f --- M scripts/listpages.py 1 file changed, 4 insertions(+), 3 deletions(-)
Approvals: XZise: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/listpages.py b/scripts/listpages.py index aa10f47..e17c686 100644 --- a/scripts/listpages.py +++ b/scripts/listpages.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- -""" +r""" Print a list of pages, as defined by page generator parameters. + Optionally, it also prints page content to STDOUT.
These parameters are supported to specify which pages titles to print: @@ -110,8 +111,7 @@ is found when outputlang is not None.
""" - - self.site = page._link._site + self.site = page._link.site self.title = page._link.title self.loc_title = page._link.canonical_title() self.can_title = page._link.ns_title() @@ -142,6 +142,7 @@
def main(*args): + """Main function.""" gen = None notitle = False fmt = '1'
pywikibot-commits@lists.wikimedia.org