Skip to content

Commit 87d8c51

Browse files
committed
fixup! fixup! Add tests and implementation for ZoneInfo
1 parent 3e4d81d commit 87d8c51

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Lib/zoneinfo/_common.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,7 @@ def get_abbr(idx):
105105
assert c == b"\n", c
106106

107107
tz_bytes = b""
108-
# TODO: Walrus operator
109-
while True:
110-
c = fobj.read(1)
111-
if c == b"\n":
112-
break
108+
while (c := fobj.read(1)) != b"\n":
113109
tz_bytes += c
114110

115111
tz_str = tz_bytes

0 commit comments

Comments
 (0)