[libvirt] [libvirt-python 1/2] override: Fix exception handling syntax

Daniel P. Berrange berrange at redhat.com
Mon Dec 9 14:58:33 UTC 2013


On Fri, Dec 06, 2013 at 04:25:09PM -0600, Doug Goldstein wrote:
> Python 3 no longer accepts 'except Exception, e:' as valid while Python
> 2.4 does not accept the new syntax 'except Exception as e:' so this uses
> a fall back method that is compatible with both.
> ---
>  libvirt-override-virStream.py | 3 ++-
>  libvirt-override.py           | 8 ++++++--
>  2 files changed, 8 insertions(+), 3 deletions(-)

ACK

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