# HG changeset patch # User paulb # Date 1134391600 0 # Node ID 3e179d77b159df5bd8a608b836d89624da0c9b30 # Parent 93404b5e602c54be9e12b422454752a92afadd12 [project @ 2005-12-12 12:46:37 by paulb] Updated release information. Added copyright and licensing text. diff -r 93404b5e602c -r 3e179d77b159 libxml2dom/__init__.py --- a/libxml2dom/__init__.py Mon Dec 12 12:46:16 2005 +0000 +++ b/libxml2dom/__init__.py Mon Dec 12 12:46:40 2005 +0000 @@ -2,9 +2,25 @@ """ DOM wrapper around libxml2, specifically the libxml2mod Python extension module. + +Copyright (C) 2003, 2004, 2005 Paul Boddie + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA """ -__version__ = "0.3.2" +__version__ = "0.3.3" from libxml2dom.macrolib import * from libxml2dom.macrolib import \ @@ -13,7 +29,6 @@ parseFile as Node_parseFile, \ toString as Node_toString, toStream as Node_toStream, \ toFile as Node_toFile -import weakref # Attribute and node list wrappers. @@ -391,10 +406,9 @@ def __init__(self, node): self._node = node - self.weakref_ownerDocument = weakref.ref(self) def _ownerDocument(self): - return self.weakref_ownerDocument() + return self def _parentNode(self): return None diff -r 93404b5e602c -r 3e179d77b159 libxml2dom/macrolib/__init__.py --- a/libxml2dom/macrolib/__init__.py Mon Dec 12 12:46:16 2005 +0000 +++ b/libxml2dom/macrolib/__init__.py Mon Dec 12 12:46:40 2005 +0000 @@ -1,8 +1,26 @@ #!/usr/bin/env python -"DOM macro library for libxml2." +""" +DOM macro library for libxml2. + +Copyright (C) 2003, 2004, 2005 Paul Boddie + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. -__version__ = "0.3.2" +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +""" + +__version__ = "0.3.3" # Expose all functions here. diff -r 93404b5e602c -r 3e179d77b159 libxml2dom/macrolib/macrolib.py --- a/libxml2dom/macrolib/macrolib.py Mon Dec 12 12:46:16 2005 +0000 +++ b/libxml2dom/macrolib/macrolib.py Mon Dec 12 12:46:40 2005 +0000 @@ -2,6 +2,22 @@ """ DOM macros for virtual libxml2mod node methods and properties. + +Copyright (C) 2003, 2004, 2005 Paul Boddie + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA """ import xml.dom