dae/libanki — pull request #19 by ospalh (2012-11-07 09:09:48+00:00)
Title: Some fixes

Hi.
Like with ankiqt, when looking through the libanki code, i made some fixes:

* Two double imports, rather harmless
* In `upgrade.py`, it looks like the code to avoid setting the background color to `#ffffff` rather than to `white` didn't work. The local variable `bg` was set but not used, and later the background would be set to `#ffffff`.
* And lastly, i guess this is the reason why you *can* use `except Exception as e` with Python 2.6/2.7 and *have* to use it with Python 3: the easy to make error of writing `except ExceptionA, ExceptionB`, the equivalent of `except ExceptionA as ExceptionB` instead of `except (ExceptionA, ExceptionB)`