Skip to content

Commit ff6d141

Browse files
committed
remove unnecessary comprehensions
1 parent d788408 commit ff6d141

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def get_version():
2222
def get_requirements():
2323
"""Reads the requirements file."""
2424
requirements = read("requirements.txt")
25-
return [r for r in requirements.strip().splitlines()]
25+
return list(requirements.strip().splitlines())
2626

2727

2828
setup(

src/aws_encryption_sdk/streaming_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def readline(self):
283283

284284
def readlines(self):
285285
"""Reads all chunks of output, outputting a list as defined in the IOBase specification."""
286-
return [line for line in self]
286+
return list(self)
287287

288288
def __iter__(self):
289289
"""Make this class and subclasses identify as iterators."""

test/unit/test_identifiers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test_algorithm_safe_to_cache(check_algorithm, safe_to_cache):
4141
assert not check_algorithm.safe_to_cache()
4242

4343

44-
@pytest.mark.parametrize("suite", [suite for suite in EncryptionSuite])
44+
@pytest.mark.parametrize("suite", list(EncryptionSuite))
4545
def test_encryption_suite_invalid_kdf(suite):
4646
mock_kdf = Mock()
4747
mock_kdf.input_length.return_value = 1

0 commit comments

Comments
 (0)