diff options
-rw-r--r-- | coverage/backward.py | 2 | ||||
-rw-r--r-- | coverage/parser.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/coverage/backward.py b/coverage/backward.py index e782284a..7d268545 100644 --- a/coverage/backward.py +++ b/coverage/backward.py @@ -164,7 +164,7 @@ else: def binary_bytes(byte_values): """Produce a byte string with the ints from `byte_values`.""" - return "".join(chr(b) for b in byte_values) + return "".join([chr(b) for b in byte_values]) def byte_to_int(byte_value): """Turn an element of a bytes object into an int.""" diff --git a/coverage/parser.py b/coverage/parser.py index d531d128..581c8518 100644 --- a/coverage/parser.py +++ b/coverage/parser.py @@ -550,7 +550,7 @@ class ByteParser(object): # starts is the entrances to the chunks starts = set([ch.byte for ch in chunks]) for ch in chunks: - assert all((ex in starts or ex < 0) for ex in ch.exits) + assert all([(ex in starts or ex < 0) for ex in ch.exits]) def _arcs(self): """Find the executable arcs in the code. |