https://bugzilla.wikimedia.org/show_bug.cgi?id=56188

       Web browser: ---
            Bug ID: 56188
           Summary: Page.templates has incompatible API change from compat
           Product: Pywikibot
           Version: core (2.0)
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

COMPAT:
    def templates(self, get_redirect=False):
        """Return a list of titles (unicode) of templates used on this Page.

        Template parameters are ignored.
        """


CORE:
    def templates(self, content=False):                                        
                                                                               
                """Return a list of Page objects for templates used on this
Page.                                                                           
        Template parameters are ignored.  This method only returns embedded
        templates, not template pages that happen to be referenced through     
                                                                               
                a normal link.                                                 
                                                                               
                                                                               
                                                                               
                                @param content: if True, retrieve the content
of the current version                                                         
                                              of each template (default False)

        """

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to