Skip to content

Commit f38ced3

Browse files
committed
Simplify loop condition
1 parent 8c4fd23 commit f38ced3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bpython/curtsiesfrontend/parse.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ def parse(s: str) -> FmtStr:
5050
"""Returns a FmtStr object from a bpython-formatted colored string"""
5151
rest = s
5252
stuff = []
53-
while True:
54-
if not rest:
55-
break
53+
while rest:
5654
start, rest = peel_off_string(rest)
5755
stuff.append(start)
5856
return (

0 commit comments

Comments
 (0)