Bart Smaalders wrote:
>
> solaris.py:
>
>  934         lines = []
>  935         complete = False
>  936         while not complete:
>  937                 line = lexer.instream.readline().strip()
>  938                 if line[-1] in continuation:
>  939                         line = line[:-1]
>  940                 else:
>  941                         complete = True
>  942                 lines.append(line)
>  943         return ' '.join(lines)
>
> could more simply read:
>
> lines = []
> while True:
>     line = lexer.instream.readline().strip()
>     if line[-1] in continuation:
>         lines.append(line[:-1])
>     else:
>         lines.append(line)
>         break;
> return ' '.join(lines)

Indeed. David (Comay) has asked me to hold off on this
until he gets his changes in for WOS build #99, so I'll
generate a new webrev then with your suggest change.

Thanks.

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to