linux-traipu team mailing list archive
-
linux-traipu team
-
Mailing list archive
-
Message #03359
[Bug 912369] Re: Don't mix tabs and spaces in python code
** Branch linked: lp:openshot
--
You received this bug notification because you are a member of UBUNTU -
AL - BR, which is subscribed to OpenShot Video Editor.
https://bugs.launchpad.net/bugs/912369
Title:
Don't mix tabs and spaces in python code
Status in OpenShot Video Editor:
Fix Committed
Bug description:
Please replace alls tabs with 4 spaces. You should avoid mixing tabs and spaces. It is a good idea to only use spaces.
Using tabs in python can lead to bugs which are very hard to find.
For a quick code analysis Cython (www.cython.org) can be used:
for x in `find | grep py`; do echo "############### $x:"; cython $x;
done
The above command line showed several problems in your code (Version 1.4.0).
With cython you can also improve the speed of time critical python code a lot.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openshot/+bug/912369/+subscriptions
References