Lint PiperOrigin-RevId: 881968442
diff --git a/python/tests/compressor_test.py b/python/tests/compressor_test.py index 1979e7c..4092b2e 100644 --- a/python/tests/compressor_test.py +++ b/python/tests/compressor_test.py
@@ -147,4 +147,4 @@ thread.start() for thread in threads: thread.join() - assert sorted(list(results.queue)) == [1, 2, 3, 4] + assert sorted(results.queue) == [1, 2, 3, 4]
diff --git a/python/tests/decompressor_test.py b/python/tests/decompressor_test.py index 32b3709..76c2e21 100644 --- a/python/tests/decompressor_test.py +++ b/python/tests/decompressor_test.py
@@ -165,4 +165,4 @@ thread.start() for thread in threads: thread.join() - assert sorted(list(results.queue)) == [1, 2, 3, 4] + assert sorted(results.queue) == [1, 2, 3, 4]
diff --git a/setup.py b/setup.py index cda6597..901412c 100644 --- a/setup.py +++ b/setup.py
@@ -75,10 +75,7 @@ LOGGER.debug("skipping '%s' extension (up-to-date)", ext.name) return - c_sources = [] - for source in ext.sources: - if source.endswith(".c"): - c_sources.append(source) + c_sources = [source for source in ext.sources if source.endswith(".c")] extra_args = ext.extra_compile_args or [] objects = []