csv2lyx.py not working with python3??

Pavel Sanda sanda at lyx.org
Wed Mar 8 21:27:26 UTC 2023


On Tue, Mar 07, 2023 at 08:46:34AM +0000, José Matos wrote:
> Simplest solution, remove all the 'rU' arguments for open in the
> script.
> 
> Rationale: 'r' is the read mode, default, 'U' is for the universal
> newlines mode (for backwards compatibility; should not be used in new
> code) [https://docs.python.org/2/library/io.html#io.open].
> 
> 
> The attached path does precisely that, removes all the 'rU' arguments
> in `open`. I tested it with some random csv file (the Stocks file from
> matplotlib) and the outcome is the same for python 2 and 3. Due to the
> change required for me that is more than good enough validation. :-)

I committed the patch for your convenience. Pavel


More information about the lyx-devel mailing list