← Back to team overview

openshot.developers team mailing list archive

[Bug 591680] Re: Prepare transition to python 3 and make openshot python2.6 friendly

 

Just a thought after looking through the patch.  What if we change all
of our "print" statements to use the built-in logging in Python.    This
would give us more control over what is output to the command line, and
we could allow people to set the debug level, which would give more
control over how much output comes out of OpenShot.

For example:

import logging
logging.debug('This is a debug message')
logging.info('This is an info message')
logging.warning('This is a warning message')
logging.error('This is an error message')
logging.critical('This is a critical error message')

More details:
http://docs.python.org/library/logging.html

-- 
Prepare transition to python 3 and make openshot python2.6 friendly
https://bugs.launchpad.net/bugs/591680
You received this bug notification because you are a member of OpenShot
Developers, which is subscribed to OpenShot Video Editor.

Status in OpenShot Video Editor: Confirmed

Bug description:
Hi,

In order to prepare the transition to python 3, i made a patch, with the help of the 2to3 utility, that makes openshot python 2.6 friendly.





References