mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix while statements with non-bool conditions in _pyrepl
(#127509)
Fix non-bool value conditions
This commit is contained in:
parent
bb9d955e16
commit
a327810169
2 changed files with 2 additions and 2 deletions
|
@ -786,7 +786,7 @@ class UnixConsole(Console):
|
|||
# only if the bps is actually needed (which I'm
|
||||
# betting is pretty unlkely)
|
||||
bps = ratedict.get(self.__svtermstate.ospeed)
|
||||
while 1:
|
||||
while True:
|
||||
m = prog.search(fmt)
|
||||
if not m:
|
||||
os.write(self.output_fd, fmt)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue