diff --git a/src/xdist/looponfail.py b/src/xdist/looponfail.py index 19b9313..5ce13a0 100644 --- a/src/xdist/looponfail.py +++ b/src/xdist/looponfail.py @@ -61,7 +61,7 @@ class RemoteControl: def trace(self, *args): if self.config.option.debug: - msg = " ".join([str(x) for x in args]) + msg = " ".join(str(x) for x in args) print("RemoteControl:", msg) def initgateway(self): diff --git a/src/xdist/report.py b/src/xdist/report.py index 8843b40..02ad30d 100644 --- a/src/xdist/report.py +++ b/src/xdist/report.py @@ -16,5 +16,5 @@ def report_collection_diff(from_collection, to_collection, from_id, to_id): "The difference is:\n" "{diff}" ).format(from_id=from_id, to_id=to_id, diff="\n".join(diff)) - msg = "\n".join([x.rstrip() for x in error_message.split("\n")]) + msg = "\n".join(x.rstrip() for x in error_message.split("\n")) return msg