[Bug 1013171] Re: Many package hooks not ported to python3
Edward Donovan
launchpad at numble.net
Mon Jun 25 22:52:39 UTC 2012
chromium-browser has three different things that need to be changed, in
its apport hook. The print and except statements, I understand what to
do. The third issue is a list comprehension, I think. It looked like
this:
for ext in entry['extensions']['settings'].keys():
The 2to3 tool wants to wrap that in "list()" :
for ext in list(entry['extensions']['settings'].keys()):
That looks fair enough, according to the python 3 docs. But I don't
really know why this line needs fixing, while
for plugin in entry['plugins']['plugins_list']:
does not. I can see that the former line has a method call or
something, with ".keys()". But since I can't tell you why those are
treated differently, I'd better ask for someone more knowledgeable to
look at this. Thanks.
** Patch added: "python3 patch for chromium-browser's apport hook. Needs review."
https://bugs.launchpad.net/ubuntu/quantal/+source/chromium-browser/+bug/1013171/+attachment/3204203/+files/chromium-browser.patch
** Description changed:
Since the description here is the only post that can be updated, it
seems the best place to keep a changing list. (The original description
was brief, and about only one package.)
Working from the archive's Contents file, I got the list of packages
that keep files under apport/package-hooks. Below are the packages that
haven't been tested yet, to my knowledge. As I get time, I'll test them
with 2to3, and update the list. And try to post patches as needed.
Thanks - Edward Donovan <edward.donovan at numble.net>
aiccu
apache2.2-common
- audacity
cairo-dock-core
cheese-common
conky-all
conky-cli
conky-std
connman
cryptsetup
desktopcouch
dovecot-core
eclipse-platform
fso-gsmd
gnome-media-player
isc-dhcp-server
libfm-data
libvirt-bin
lxappearance
lxc
lxinput
lxlauncher
lxpanel
lxrandr
lxterminal
maas
magicicada
mpd
mysql-server-5.5
mythtv-common
ntp
nut
nut-client
nut-server
pcmanfm
php5-common
ptouch-driver
python-nova
qemu-common
rss-glx
samba-common-bin
sl-modem-daemon
snmpd
ubuntu-vm-builder
virtualbox
virtualbox-guest-dkms
xul-ext-mozvoikko
** Description changed:
Since the description here is the only post that can be updated, it
seems the best place to keep a changing list. (The original description
was brief, and about only one package.)
Working from the archive's Contents file, I got the list of packages
that keep files under apport/package-hooks. Below are the packages that
haven't been tested yet, to my knowledge. As I get time, I'll test them
with 2to3, and update the list. And try to post patches as needed.
Thanks - Edward Donovan <edward.donovan at numble.net>
aiccu
apache2.2-common
cairo-dock-core
cheese-common
- conky-all
- conky-cli
- conky-std
connman
cryptsetup
desktopcouch
dovecot-core
eclipse-platform
fso-gsmd
gnome-media-player
isc-dhcp-server
libfm-data
libvirt-bin
lxappearance
lxc
lxinput
lxlauncher
lxpanel
lxrandr
lxterminal
maas
magicicada
mpd
mysql-server-5.5
mythtv-common
ntp
nut
nut-client
nut-server
pcmanfm
php5-common
ptouch-driver
python-nova
qemu-common
rss-glx
samba-common-bin
sl-modem-daemon
snmpd
ubuntu-vm-builder
virtualbox
virtualbox-guest-dkms
xul-ext-mozvoikko
--
You received this bug notification because you are a member of
Bluetooth, which is subscribed to bluez 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-bluetooth
mailing list