[Bug 1013171] Re: Many package hooks not ported to python3

Dmitrijs Ledkovs 1013171 at bugs.launchpad.net
Sun Jun 17 01:45:33 UTC 2012


It would help a lot to keep the python hooks both python2.7 (precise)
and python3 (quantal+) for the upgrade case where your hook maybe run
with either pythons.

https://wiki.ubuntu.com/Python/3

Most of the time it's easy to accomplish with:
from __future__ import print_function

Which is valid in both python2.6+ and python3.

Also note:
Consider passing universal_newlines=True to subprocess.Popen() and friends to get text output directly.

Which nicely helps to deal with unicode vs bytes in python3 vs python2
cases.

-- 
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/1013171

Title:
  Many package hooks not ported to python3

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1013171/+subscriptions




More information about the Ubuntu-mozillateam-bugs mailing list