Xqt added a comment.

  In T323413#8406838 <https://phabricator.wikimedia.org/T323413#8406838>, 
@Dvorapa wrote:
  
  > Why does Category.members() calls Category.subcategories()? This seems to 
be completely wrong as subcategories() calls members() internally:
  
  This does the right thing: `self.subcategories()` is called without 
parameters which means it just calls `self.members` with total=None and 
recurse=False which is done by the `site.categorymembers()` call.
  
  > Also the `member_type='subcat'` is lost in `if recurse:` condition, so 
subcategories() yields also articles.
  
  no, the `member_type` is passed via `**kwargs`. There are no articles 
yielded; see also the newly added tests.

TASK DETAIL
  https://phabricator.wikimedia.org/T323413

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: Xqt, Aklapper, pywikibot-bugs-list, Dvorapa, Adamm71, Jersione, Hellket777, 
LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, 
SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, 
Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, 
Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, 
Maathavan, Altostratus, Neuronton, Avicennasis, mys_721tx, jayvdb, Masti, 
Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to