Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3 compatibility #107

Closed
xrmx opened this issue Dec 11, 2012 · 3 comments
Closed

python3 compatibility #107

xrmx opened this issue Dec 11, 2012 · 3 comments

Comments

@xrmx
Copy link
Contributor

xrmx commented Dec 11, 2012

Since libreoffice moved to python 3.3.0 for 4.0 (next release) it's time to support it. From a quick tour it's mostly matter of print and exceptions. 2to3 may be handy, but after some manual fixup and a 2to3 run it with python3.2 it breaks in:
File "../unoconv", line 236
print('URE_BOOTSTRAP=%s' % os.environ['URE_BOOTSTRAP'], file=sys.stderr)

which looks correct though

@xrmx
Copy link
Contributor Author

xrmx commented Dec 11, 2012

Actually 2to3 plus changing s/python/python3.2/ from command invocation did the trick:
http://paste.ubuntu.com/1426192/

@dagwieers
Copy link
Member

I accept pull requests.

@xrmx
Copy link
Contributor Author

xrmx commented Dec 19, 2012

Opened #111

@xrmx xrmx closed this as completed Dec 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants