summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2013-10-05 10:05:03 -0400
committerNed Batchelder <ned@nedbatchelder.com>2013-10-05 10:05:03 -0400
commitb9b08877c2c1c99b181a3e23a2e35e4ea0ff320c (patch)
treef0857b8c75f63f1eae3f4dbe8aecf912b2f832f4
parentf3b03b4f5e1b1e8f808d425420c5ae6b0a1d15dc (diff)
downloadpython-coveragepy-b9b08877c2c1c99b181a3e23a2e35e4ea0ff320c.tar.gz
Pretty soon I'll be able to use generator expressions...
-rw-r--r--coverage/backward.py2
-rw-r--r--coverage/parser.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/coverage/backward.py b/coverage/backward.py
index e782284..7d26854 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 d531d12..581c851 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.