[Libguestfs] [PATCH] python: Inherit from 'object' base class.
Daniel P. Berrange
berrange at redhat.com
Thu Jan 24 13:17:54 UTC 2013
On Thu, Jan 24, 2013 at 01:10:27PM +0000, Richard W.M. Jones wrote:
> From: "Richard W.M. Jones" <rjones at redhat.com>
>
> This fixes the following Debian bug:
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=698771
>
> For an overview, see this question and the links from there:
> http://stackoverflow.com/questions/4015417/python-class-inherits-object
> ---
> README | 2 +-
> generator/python.ml | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/README b/README
> index 28db6c5..0b207a3 100644
> --- a/README
> +++ b/README
> @@ -137,7 +137,7 @@ To build language bindings:
>
> - Perl if you want to build the perl bindings (optional)
>
> -- Python if you want to build the python bindings (optional)
> +- Python >= 2.2 if you want to build the python bindings (optional)
>
> - Ruby, rake if you want to build the ruby bindings (optional)
>
> diff --git a/generator/python.ml b/generator/python.ml
> index 8752fd3..0b0a79c 100644
> --- a/generator/python.ml
> +++ b/generator/python.ml
> @@ -662,7 +662,7 @@ import libguestfsmod
> class ClosedHandle(ValueError):
> pass
>
> -class GuestFS:
> +class GuestFS(object):
> \"\"\"Instances of this class are libguestfs API handles.\"\"\"
>
> def __init__ (self, environment=True, close_on_exit=True):
ACK, makes sense, and I've just submitted the same fix for libvirt
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 Libguestfs
mailing list