Page MenuHomePhabricator

Access match object groups by item name instead of group() method
Closed, ResolvedPublic



Match object groups can be accessed by __getitem__, which is equivalent to group(). So mo['name'] is now equivalent to'name').

What to do

All occurrences of'name') is to be replaced by the corresponding item access match['name'].
These issues can be found at
Split patches into parts of only a couple of affected files. This makes it easier to review.

Useful links

Event Timeline

Change 881415 had a related patch set uploaded (by Ayush Anand33; author: Ayush Anand33):

[pywikibot/core@master] Access match object by name

Change 881415 merged by jenkins-bot:

[pywikibot/core@master] Access match object by name