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
commit9c308678f4043a093503df1770caf8bc9d6bec9d (patch)
treef92ead4d524302142ece2cf845ff2d18a0df5376
parentd022939e885a756f838b031f9e2f47fecbebd0f2 (diff)
downloadpython-coveragepy-git-9c308678f4043a093503df1770caf8bc9d6bec9d.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 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.