José Matos
04ecabef60
Update Python scripts to Python 3+
...
Remove support for Python 2
Use formatted strings where appropriated
2024-06-10 11:29:56 +01:00
Pavel Sanda
bf4ba774c6
Update csv2lyx.py to work with Python 3.
...
Patch from Jose.
2023-03-08 22:26:04 +01:00
Scott Kostyshak
eb53788f3a
csv2lyx: use universal newlines when reading CSVs
...
Patch from Dustin J. Mitchell.
2014-02-16 00:07:43 -05:00
Richard Heck
f9de88c53c
Remove the shebang line from our python scripts, per Jose's suggestion.
...
Fedora ships these chmod 644 and has never seen a problem. The advantage
to doing this is that it better controls what version of python we are
using to launch the script, and it will reveal if we're somehow somewhere
not controlling that properly.
2014-01-28 12:52:16 -05:00
Uwe Stöhr
2f38fe8649
csv2lyx.py: update for fileformat 413 (LyX 2.0.x)
2013-05-31 02:02:28 +02:00
José Matox
7a7eede980
Replace condition with an exception (code more robust) and add comment the reason
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26450 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 18:21:41 +00:00
Richard Heck
805d18d818
Another fix for csv2lyx. This one looks like a generic bug, though
...
one that may have been triggered by an older version of python. The
problem is that the sniffer call could fail, and then dialect is
undefined.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26447 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 17:37:06 +00:00
Richard Heck
74b225d428
Cosmetics.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26446 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 17:03:06 +00:00
Richard Heck
8d94611a02
The line_num member was only introduced with python 2.5, so we'll
...
do this a different way.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26445 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 16:57:56 +00:00
José Matox
81ca2da2d4
escape backslashes when importing the cells
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24862 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-20 11:20:33 +00:00
Uwe Stöhr
0beb0c1a6d
csv2lyx.py: I haven't contributed something to the actual file version
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24824 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-18 20:43:04 +00:00
José Matox
b1faf53669
Update file to the last version discussed on bugzilla and on the devel list
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24821 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-18 19:26:05 +00:00
Uwe Stöhr
58220e118d
csv2lyx.py: new csv2lyx version by Hartmut and José
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24818 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-18 19:08:23 +00:00
Jürgen Spitzmüller
2c796e8fcb
* csv2lyx:
...
- make output more closely to format 276. This also prevents lyx2lyx from choking
while importing a csv file into 1.6.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24626 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-06 05:54:19 +00:00
Jürgen Spitzmüller
42aaa245db
* Hartmut's csv2lyx script
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24620 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-05 17:08:21 +00:00