Page MenuHomeSoftware Heritage

Small refactoring in indexing_lister
ClosedPublic

Authored by douardda on Jan 8 2019, 10:58 AM.

Details

Summary
  • use a generator instead of a while loop
  • declare a local logger and use it instead of the root logger.

Diff Detail

Repository
rDLS Listers
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

douardda created this revision.Jan 8 2019, 10:58 AM
vlorentz accepted this revision.Jan 8 2019, 11:52 AM
vlorentz added a subscriber: vlorentz.
vlorentz added inline comments.
swh/lister/core/indexing_lister.py
174–191

You can make this a method

This revision is now accepted and ready to land.Jan 8 2019, 11:52 AM
This revision was automatically updated to reflect the committed changes.