python3: added compatibility #124

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@tanty

Dodgy solution in which we create a python2 and
python3 compatible wrapper that would import the
old script, or a new automatically migrated
version.

The automatic migration was done with the 2to3
tool after modifying the original script so we can
invoke it as a module.

This is needed since LibreOffice is providing its
own python3 bundled package since 4.x series.

@tanty tanty python3: added compatibility
Dodgy solution in which we create a python2 and
python3 compatible wrapper that would import the
old script, or a new automatically migrated
version.

The automatic migration was done with the 2to3
tool after modifying the original script so we can
invoke it as a module.

This is needed since LibreOffice is providing its
own python3 bundled package since 4.x series.
6eba87f
@tanty

This is an alternative to #111 that will keep being compatible with python 2.5

@dagwieers
Owner

@tanty I would like to support python3, but prefer not to do it in this way :-/

I wonder if we can look at python 2.6+ and python 3.3+ support only ? (Assuming that people interested in document conversion are running more recent versions of LibreOffice/OpenOffice and more current distribution versions).

Would this help: http://lucumr.pocoo.org/2013/5/21/porting-to-python-3-redux/

@tanty

Yes, #111 is more elegant.

This alternative option added backward compatibility for python versions previous to 2.6. It is its only enhanced feature and, hence, the uglyness.

Feel free to drop the patch. I agree #111 should be just enough and I also think that we can look at python 2.6+ and 3.3+ support only.

@dagwieers
Owner

Closed by #111, sorry for the delay.

@dagwieers dagwieers closed this May 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment