Spaces Data

Minimal test - lines (274, 280)

path: .spaces[19].metrics.loc.sloc
old: 5.0
new: 7.0

path: .spaces[19].metrics.loc.cloc
old: 0.0
new: 2.0

path: .spaces[19].metrics.mi.mi_original
old: 121.6805673182634
new: 116.22971708499976

path: .spaces[19].metrics.mi.mi_visual_studio
old: 71.15822650190842
new: 67.97059478654957

path: .spaces[19].metrics.mi.mi_sei
old: 100.05073876941046
new: 129.018491751392

Code

    def _is_binary_reader(stream, default=False):
        try:
            return isinstance(stream.read(0), bytes)
        except Exception:
            return default
            # This happens in some cases where the stream was already
            # closed.  In this case, we assume the default.