On 06/25/2016 02:24 PM, Scott Kostyshak wrote:
> On Sat, Jun 25, 2016 at 07:19:15PM +0100, José Abílio Matos wrote:
>> On Friday, June 24, 2016 10:02:30 PM WEST Richard Heck wrote:
>>> commit 92fae708aebf8d2f3bc393b29c54a4cebeafe730
>>> Author: Richard Heck <rgh...@lyx.org>
>>> Date:   Fri Jun 24 15:03:59 2016 -0400
>>>
>>>     Style.
>>> ---
>>>  lib/lyx2lyx/LyX.py |    2 +-
>>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>>
>>> diff --git a/lib/lyx2lyx/LyX.py b/lib/lyx2lyx/LyX.py
>>> index bea3d67..f1fcf2e 100644
>>> --- a/lib/lyx2lyx/LyX.py
>>> +++ b/lib/lyx2lyx/LyX.py
>>> @@ -317,7 +317,7 @@ class LyX_base:
>>>                  line = trim_eol_binary(line)
>>>                  decoded = line.decode('latin1')
>>>              if check_token(decoded, '\\begin_preamble'):
>>> -                while 1:
>>> +                while True:
>>>                      line = self.input.readline()
>>>                      if not line:
>>>                          # eof found before end of header
>> This was a left-over from python 2.2 support. :-)
>>
>> Thank you for catching that.
> git grep 'while 1' catches more if anyone is interested.

Changed 'em.

Richard

Reply via email to