Converted src.block to be PEP8 compliant

Includes some pragma: no cover for a couple of corner cases that were originally
marked as "no cover" on a single line.