python: Inherit from 'object' base class.

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
This commit is contained in:
Richard W.M. Jones
2013-01-24 13:09:16 +00:00
parent ec8939fd47
commit abb1d46636
2 changed files with 2 additions and 2 deletions

2
README
View File

@@ -137,7 +137,7 @@ To build language bindings:
- Perl if you want to build the perl bindings (optional) - 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) - Ruby, rake if you want to build the ruby bindings (optional)

View File

@@ -662,7 +662,7 @@ import libguestfsmod
class ClosedHandle(ValueError): class ClosedHandle(ValueError):
pass pass
class GuestFS: class GuestFS(object):
\"\"\"Instances of this class are libguestfs API handles.\"\"\" \"\"\"Instances of this class are libguestfs API handles.\"\"\"
def __init__ (self, environment=True, close_on_exit=True): def __init__ (self, environment=True, close_on_exit=True):