swh-lister/swh
Antoine R. Dumont (@ardumont) b69b0b7fd6
opam: Move the state initialization into the get_pages method
We should avoid side-effects in the constructor as much as possible. That avoids
surprising behavior at object instantiation time. The state if needed must be
initialized into the `swh.lister.pattern.Lister.get_pages` method, as preconized in the
class docstring.

This also fixes the current test that actually bootstrap a real opam local "clone" in
/tmp.

Related to T3590
2021-09-21 11:17:16 +02:00
..
lister opam: Move the state initialization into the get_pages method 2021-09-21 11:17:16 +02:00
__init__.py mypy: Fix errors with release >= v0.900 2021-06-09 14:02:23 +02:00