diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2005-01-15 17:45:28 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2005-01-15 17:45:28 +0000 |
commit | 1cd4dae166d934a18ebcb18a69700271572bcd81 (patch) | |
tree | 778ecfde6b6c69d63109b9abed6581a0b141d869 /python/libxml.py | |
parent | db439254cf6914eb2c70eb99cd118a2e5f242346 (diff) | |
download | libxml2-1cd4dae166d934a18ebcb18a69700271572bcd81.tar.gz |
make __str__ call serialize() on nodes, c.f. bug #157872 Daniel
* python/libxml.py: make __str__ call serialize() on nodes, c.f.
bug #157872
Daniel
Diffstat (limited to 'python/libxml.py')
-rw-r--r-- | python/libxml.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/libxml.py b/python/libxml.py index 588e8624..bde8aba4 100644 --- a/python/libxml.py +++ b/python/libxml.py @@ -231,6 +231,8 @@ class xmlCore: self._o = _obj; return self._o = None + def __str__(self): + return self.serialize() def get_parent(self): ret = libxml2mod.parent(self._o) if ret == None: |