Skip to content

PEP 479 compatibility: Replace StopIteration with return

Description

This changes a few lalinference python programs to be compatible with python3.7. PEP479 changes the behaviour of generators so that this exception can no longer be used to signal the end of the sequence. The generator should simply return instead. This fixes issue #185 (closed).

API Changes and Justification

Backwards Compatible Changes

  • This change introduces no API changes
  • This change adds new API calls

Backwards Incompatible Changes

  • This change modifies an existing API
  • This change removes an existing API

Review Status

Merge request reports

Loading