Skip to content

Commit 7e40938

Browse files
RanKKIpicnixz
andauthored
refactor: simplify condition check
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 16c3d11 commit 7e40938

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/email/policy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def header_source_parse(self, sourcelines):
125125
126126
"""
127127
name, value = sourcelines[0].split(':', 1)
128-
no_first_value = value.strip() == '' and len(sourcelines) > 1
128+
no_first_value = not value.strip() and len(sourcelines) > 1
129129

130130
value = '' if no_first_value else value.lstrip(' \t')
131131

0 commit comments

Comments
 (0)