Skip to content

Commit 7b7fecf

Browse files
authored
Merge pull request #975 from mulkieran/simplify_from_str
Simplify an expression
2 parents 7739638 + 8ec67b5 commit 7b7fecf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/stratis_cli/_constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ def from_str(code_str):
4242
:rtype: YesOrNo
4343
:raises: StopIteration
4444
"""
45-
return next(item for item in list(YesOrNo) if code_str == str(item))
45+
return next(item for item in YesOrNo if code_str == str(item))

0 commit comments

Comments
 (0)