Page MenuHomePhabricator

Use pairwise to simplify code
Open, LowPublic

Description

use backports.pairwise() to simplify some functions and methods found here:

  • cosmetic_changes.CosmeticChangesToolkit.removeEmptySections()
  • textlib.__extract_sections()
  • terminal_interface_base.UI.stream_output() (unsure)

Event Timeline

Xqt triaged this task as Low priority.Jun 28 2023, 11:44 AM

Change 935688 had a related patch set uploaded (by Matěj Suchánek; author: Matěj Suchánek):

[pywikibot/core@master] [IMPR] Simplify code using itertools

https://gerrit.wikimedia.org/r/935688

Xqt claimed this task.
Xqt reassigned this task from Xqt to matej_suchanek.

Change 935688 merged by jenkins-bot:

[pywikibot/core@master] [IMPR] Simplify code using itertools

https://gerrit.wikimedia.org/r/935688

matej_suchanek renamed this task from Use pairsfile to simplify code to Use pairwise to simplify code.Feb 5 2024, 11:58 AM