lalburst.snglcoinc: python3 fixes
Description
This merge request fixes a few issues encountered within snglcoinc.py
for python3, namely:
-
singlesqueue
: Cast the result ofmap
to a list for consistent behavior between python 2 and 3. I ran into this issue where trying to sortself.incomplete
after amap
was problematic, sincemap
returns a generator instead of a list in python3. -
multidict
: A call tomultidict.iteritems()
crashed since it was usingdict.iteritems()
. I have also defined amultidict.items()
which has identical behavior tomultidict.iteritems()
to mimic adict
, but if that is problematic I'm happy to remove this. That is the extent to the "new API calls".
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
If any of the Backwards Incompatible check boxes are ticked please provide a justification why this change is necessary and why it needs to be done in a backwards incompatible way.
Review Status
Edited by Ghost User