[libvirt] [PATCH python 05/15] generator: Remove use of 'has_key' function
Daniel P. Berrange
berrange at redhat.com
Wed Dec 4 18:30:17 UTC 2013
On Tue, Dec 03, 2013 at 04:36:41PM +0000, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
>
> The code 'XXX.has_key(YYYY)' must be changed to be of
> the form 'YYY in XXXX' which works in Python2 and 3
Self-NACK.
For reasons I don't yet understand this breaks on python 2.4
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvir-list
mailing list