]> git.lyx.org Git - features.git/commit
python3: fix the preview framework to work with both python 2 and 3 (part 4)
authorJosé Matos <jamatos@lyx.org>
Fri, 12 May 2017 09:01:48 +0000 (10:01 +0100)
committerJosé Matos <jamatos@lyx.org>
Fri, 12 May 2017 09:01:48 +0000 (10:01 +0100)
commit376cb6763fe1ea047fc3cfaad80969c3a5ebdd7e
treee44fd3bc975edee8dfdf6f1d26678839687e2c30
parent19cc4a1fcbd0786406b0207dbff43badb93d32ba
python3: fix the preview framework to work with both python 2 and 3 (part 4)

Remove support for python 1.x (really)

This code has not been used for a long time, probably never, since some code
above requires at least python 2.4 to work.

I got to this code by running futurize from python-future. There are no
significant warnings, mostly are related with the division but since
we are dividing floats there is no change between python 2 and 3.
lib/scripts/legacy_lyxpreview2ppm.py
lib/scripts/lyxpreview2bitmap.py
lib/scripts/lyxpreview_tools.py