Skip to content

Commit ee05c22

Browse files
committed
Remove unnecessary if check on std_abbr
The regular expression guarantees that `std_abbr` is a string with at least one character.
1 parent 05f743b commit ee05c22

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/zoneinfo/_zoneinfo.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -657,8 +657,7 @@ def _parse_tz_str(tz_str):
657657
dst_abbr = m.group("dst")
658658
dst_offset = None
659659

660-
if std_abbr:
661-
std_abbr = std_abbr.strip("<>")
660+
std_abbr = std_abbr.strip("<>")
662661

663662
if dst_abbr:
664663
dst_abbr = dst_abbr.strip("<>")

0 commit comments

Comments
 (0)